tamagui 3.0.0-beta.922.1 → 3.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/cjs/components/Accordion.cjs +12 -11
- package/dist/cjs/components/Accordion.native.cjs +12 -11
- package/dist/cjs/components/Accordion.native.js +12 -11
- package/dist/cjs/components/Accordion.native.js.map +1 -1
- package/dist/cjs/components/AlertDialog.cjs +14 -13
- package/dist/cjs/components/AlertDialog.manifest.cjs +1 -1
- package/dist/cjs/components/AlertDialog.manifest.native.cjs +1 -1
- package/dist/cjs/components/AlertDialog.manifest.native.js +1 -1
- package/dist/cjs/components/AlertDialog.manifest.native.js.map +1 -1
- package/dist/cjs/components/AlertDialog.native.cjs +14 -13
- package/dist/cjs/components/AlertDialog.native.js +14 -13
- package/dist/cjs/components/AlertDialog.native.js.map +1 -1
- package/dist/cjs/components/Button.cjs +65 -52
- package/dist/cjs/components/Button.manifest.cjs +1 -1
- package/dist/cjs/components/Button.manifest.native.cjs +1 -1
- package/dist/cjs/components/Button.manifest.native.js +1 -1
- package/dist/cjs/components/Button.manifest.native.js.map +1 -1
- package/dist/cjs/components/Button.native.cjs +72 -56
- package/dist/cjs/components/Button.native.js +72 -56
- package/dist/cjs/components/Button.native.js.map +1 -1
- package/dist/cjs/components/Card.cjs +50 -8
- package/dist/cjs/components/Card.native.cjs +50 -8
- package/dist/cjs/components/Card.native.js +50 -8
- package/dist/cjs/components/Card.native.js.map +1 -1
- package/dist/cjs/components/Checkbox.cjs +18 -16
- package/dist/cjs/components/Checkbox.native.cjs +18 -16
- package/dist/cjs/components/Checkbox.native.js +18 -16
- package/dist/cjs/components/Checkbox.native.js.map +1 -1
- package/dist/cjs/components/Dialog.cjs +16 -15
- package/dist/cjs/components/Dialog.manifest.cjs +1 -1
- package/dist/cjs/components/Dialog.manifest.native.cjs +1 -1
- package/dist/cjs/components/Dialog.manifest.native.js +1 -1
- package/dist/cjs/components/Dialog.manifest.native.js.map +1 -1
- package/dist/cjs/components/Dialog.native.cjs +16 -15
- package/dist/cjs/components/Dialog.native.js +16 -15
- package/dist/cjs/components/Dialog.native.js.map +1 -1
- package/dist/cjs/components/Input.cjs +69 -13
- package/dist/cjs/components/Input.native.cjs +73 -11
- package/dist/cjs/components/Input.native.js +73 -11
- package/dist/cjs/components/Input.native.js.map +1 -1
- package/dist/cjs/components/Label.cjs +3 -2
- package/dist/cjs/components/Label.native.cjs +3 -2
- package/dist/cjs/components/Label.native.js +3 -2
- package/dist/cjs/components/Label.native.js.map +1 -1
- package/dist/cjs/components/ListItem.cjs +89 -13
- package/dist/cjs/components/ListItem.native.cjs +98 -13
- package/dist/cjs/components/ListItem.native.js +98 -13
- package/dist/cjs/components/ListItem.native.js.map +1 -1
- package/dist/cjs/components/Popover.cjs +15 -14
- package/dist/cjs/components/Popover.native.cjs +15 -14
- package/dist/cjs/components/Popover.native.js +15 -14
- package/dist/cjs/components/Popover.native.js.map +1 -1
- package/dist/cjs/components/Progress.cjs +5 -4
- package/dist/cjs/components/Progress.native.cjs +5 -4
- package/dist/cjs/components/Progress.native.js +5 -4
- package/dist/cjs/components/Progress.native.js.map +1 -1
- package/dist/cjs/components/RadioGroup.cjs +18 -16
- package/dist/cjs/components/RadioGroup.native.cjs +18 -16
- package/dist/cjs/components/RadioGroup.native.js +18 -16
- package/dist/cjs/components/RadioGroup.native.js.map +1 -1
- package/dist/cjs/components/Select.cjs +189 -93
- package/dist/cjs/components/Select.manifest.cjs +2 -2
- package/dist/cjs/components/Select.manifest.native.cjs +2 -2
- package/dist/cjs/components/Select.manifest.native.js +2 -2
- package/dist/cjs/components/Select.manifest.native.js.map +1 -1
- package/dist/cjs/components/Select.native.cjs +189 -94
- package/dist/cjs/components/Select.native.js +189 -94
- package/dist/cjs/components/Select.native.js.map +1 -1
- package/dist/cjs/components/Separator.cjs +3 -2
- package/dist/cjs/components/Separator.native.cjs +3 -2
- package/dist/cjs/components/Separator.native.js +3 -2
- package/dist/cjs/components/Separator.native.js.map +1 -1
- package/dist/cjs/components/Sheet.cjs +17 -16
- package/dist/cjs/components/Sheet.manifest.cjs +1 -1
- package/dist/cjs/components/Sheet.manifest.native.cjs +1 -1
- package/dist/cjs/components/Sheet.manifest.native.js +1 -1
- package/dist/cjs/components/Sheet.manifest.native.js.map +1 -1
- package/dist/cjs/components/Sheet.native.cjs +17 -16
- package/dist/cjs/components/Sheet.native.js +17 -16
- package/dist/cjs/components/Sheet.native.js.map +1 -1
- package/dist/cjs/components/Slider.cjs +81 -10
- package/dist/cjs/components/Slider.native.cjs +84 -10
- package/dist/cjs/components/Slider.native.js +84 -10
- package/dist/cjs/components/Slider.native.js.map +1 -1
- package/dist/cjs/components/Surface.cjs +4 -3
- package/dist/cjs/components/Surface.native.cjs +4 -3
- package/dist/cjs/components/Surface.native.js +4 -3
- package/dist/cjs/components/Surface.native.js.map +1 -1
- package/dist/cjs/components/Switch.cjs +47 -27
- package/dist/cjs/components/Switch.manifest.cjs +1 -0
- package/dist/cjs/components/Switch.manifest.native.cjs +1 -0
- package/dist/cjs/components/Switch.manifest.native.js +1 -0
- package/dist/cjs/components/Switch.manifest.native.js.map +1 -1
- package/dist/cjs/components/Switch.native.cjs +47 -29
- package/dist/cjs/components/Switch.native.js +47 -29
- package/dist/cjs/components/Switch.native.js.map +1 -1
- package/dist/cjs/components/Tabs.cjs +93 -21
- package/dist/cjs/components/Tabs.native.cjs +95 -22
- package/dist/cjs/components/Tabs.native.js +95 -22
- package/dist/cjs/components/Tabs.native.js.map +1 -1
- package/dist/cjs/components/Toast.cjs +22 -28
- package/dist/cjs/components/Toast.manifest.cjs +9 -9
- package/dist/cjs/components/Toast.manifest.native.cjs +9 -9
- package/dist/cjs/components/Toast.manifest.native.js +9 -9
- package/dist/cjs/components/Toast.manifest.native.js.map +1 -1
- package/dist/cjs/components/Toast.native.cjs +22 -28
- package/dist/cjs/components/Toast.native.js +22 -28
- package/dist/cjs/components/Toast.native.js.map +1 -1
- package/dist/cjs/components/ToggleGroup.cjs +39 -8
- package/dist/cjs/components/ToggleGroup.native.cjs +39 -8
- package/dist/cjs/components/ToggleGroup.native.js +39 -8
- package/dist/cjs/components/ToggleGroup.native.js.map +1 -1
- package/dist/cjs/components/facets.cjs +1 -2
- package/dist/cjs/components/facets.native.cjs +1 -2
- package/dist/cjs/components/facets.native.js +1 -2
- package/dist/cjs/components/facets.native.js.map +1 -1
- package/dist/cjs/index.cjs +0 -7
- package/dist/cjs/index.native.cjs +0 -7
- package/dist/cjs/index.native.js +0 -7
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/views/Anchor.cjs +6 -12
- package/dist/cjs/views/Anchor.native.cjs +5 -10
- package/dist/cjs/views/Anchor.native.js +5 -10
- package/dist/cjs/views/Anchor.native.js.map +1 -1
- package/dist/cjs/views/EnsureFlexed.cjs +0 -1
- package/dist/cjs/views/EnsureFlexed.native.cjs +0 -1
- package/dist/cjs/views/EnsureFlexed.native.js +0 -1
- package/dist/cjs/views/EnsureFlexed.native.js.map +1 -1
- package/dist/cjs/views/VisuallyHidden.cjs +0 -1
- package/dist/cjs/views/VisuallyHidden.native.cjs +0 -1
- package/dist/cjs/views/VisuallyHidden.native.js +0 -1
- package/dist/cjs/views/VisuallyHidden.native.js.map +1 -1
- package/dist/esm/components/Accordion.mjs +4 -3
- package/dist/esm/components/Accordion.mjs.map +1 -1
- package/dist/esm/components/Accordion.native.js +4 -3
- package/dist/esm/components/Accordion.native.js.map +1 -1
- package/dist/esm/components/AlertDialog.manifest.mjs +1 -1
- package/dist/esm/components/AlertDialog.manifest.mjs.map +1 -1
- package/dist/esm/components/AlertDialog.manifest.native.js +1 -1
- package/dist/esm/components/AlertDialog.manifest.native.js.map +1 -1
- package/dist/esm/components/AlertDialog.mjs +2 -1
- package/dist/esm/components/AlertDialog.mjs.map +1 -1
- package/dist/esm/components/AlertDialog.native.js +2 -1
- package/dist/esm/components/AlertDialog.native.js.map +1 -1
- package/dist/esm/components/Button.manifest.mjs +1 -1
- package/dist/esm/components/Button.manifest.mjs.map +1 -1
- package/dist/esm/components/Button.manifest.native.js +1 -1
- package/dist/esm/components/Button.manifest.native.js.map +1 -1
- package/dist/esm/components/Button.mjs +52 -45
- package/dist/esm/components/Button.mjs.map +1 -1
- package/dist/esm/components/Button.native.js +59 -49
- package/dist/esm/components/Button.native.js.map +1 -1
- package/dist/esm/components/Card.mjs +43 -3
- package/dist/esm/components/Card.mjs.map +1 -1
- package/dist/esm/components/Card.native.js +43 -3
- package/dist/esm/components/Card.native.js.map +1 -1
- package/dist/esm/components/Checkbox.mjs +15 -13
- package/dist/esm/components/Checkbox.mjs.map +1 -1
- package/dist/esm/components/Checkbox.native.js +15 -13
- package/dist/esm/components/Checkbox.native.js.map +1 -1
- package/dist/esm/components/Dialog.manifest.mjs +1 -1
- package/dist/esm/components/Dialog.manifest.mjs.map +1 -1
- package/dist/esm/components/Dialog.manifest.native.js +1 -1
- package/dist/esm/components/Dialog.manifest.native.js.map +1 -1
- package/dist/esm/components/Dialog.mjs +4 -3
- package/dist/esm/components/Dialog.mjs.map +1 -1
- package/dist/esm/components/Dialog.native.js +4 -3
- package/dist/esm/components/Dialog.native.js.map +1 -1
- package/dist/esm/components/Input.mjs +61 -5
- package/dist/esm/components/Input.mjs.map +1 -1
- package/dist/esm/components/Input.native.js +65 -3
- package/dist/esm/components/Input.native.js.map +1 -1
- package/dist/esm/components/Label.mjs +2 -1
- package/dist/esm/components/Label.mjs.map +1 -1
- package/dist/esm/components/Label.native.js +2 -1
- package/dist/esm/components/Label.native.js.map +1 -1
- package/dist/esm/components/ListItem.mjs +76 -4
- package/dist/esm/components/ListItem.mjs.map +1 -1
- package/dist/esm/components/ListItem.native.js +85 -4
- package/dist/esm/components/ListItem.native.js.map +1 -1
- package/dist/esm/components/Popover.mjs +4 -3
- package/dist/esm/components/Popover.mjs.map +1 -1
- package/dist/esm/components/Popover.native.js +4 -3
- package/dist/esm/components/Popover.native.js.map +1 -1
- package/dist/esm/components/Progress.mjs +2 -1
- package/dist/esm/components/Progress.mjs.map +1 -1
- package/dist/esm/components/Progress.native.js +2 -1
- package/dist/esm/components/Progress.native.js.map +1 -1
- package/dist/esm/components/RadioGroup.mjs +14 -12
- package/dist/esm/components/RadioGroup.mjs.map +1 -1
- package/dist/esm/components/RadioGroup.native.js +14 -12
- package/dist/esm/components/RadioGroup.native.js.map +1 -1
- package/dist/esm/components/Select.manifest.mjs +2 -2
- package/dist/esm/components/Select.manifest.mjs.map +1 -1
- package/dist/esm/components/Select.manifest.native.js +2 -2
- package/dist/esm/components/Select.manifest.native.js.map +1 -1
- package/dist/esm/components/Select.mjs +168 -72
- package/dist/esm/components/Select.mjs.map +1 -1
- package/dist/esm/components/Select.native.js +168 -73
- package/dist/esm/components/Select.native.js.map +1 -1
- package/dist/esm/components/Separator.mjs +2 -1
- package/dist/esm/components/Separator.mjs.map +1 -1
- package/dist/esm/components/Separator.native.js +2 -1
- package/dist/esm/components/Separator.native.js.map +1 -1
- package/dist/esm/components/Sheet.manifest.mjs +1 -1
- package/dist/esm/components/Sheet.manifest.mjs.map +1 -1
- package/dist/esm/components/Sheet.manifest.native.js +1 -1
- package/dist/esm/components/Sheet.manifest.native.js.map +1 -1
- package/dist/esm/components/Sheet.mjs +3 -2
- package/dist/esm/components/Sheet.mjs.map +1 -1
- package/dist/esm/components/Sheet.native.js +3 -2
- package/dist/esm/components/Sheet.native.js.map +1 -1
- package/dist/esm/components/Slider.mjs +76 -5
- package/dist/esm/components/Slider.mjs.map +1 -1
- package/dist/esm/components/Slider.native.js +79 -5
- package/dist/esm/components/Slider.native.js.map +1 -1
- package/dist/esm/components/Surface.mjs +2 -1
- package/dist/esm/components/Surface.mjs.map +1 -1
- package/dist/esm/components/Surface.native.js +2 -1
- package/dist/esm/components/Surface.native.js.map +1 -1
- package/dist/esm/components/Switch.manifest.mjs +1 -0
- package/dist/esm/components/Switch.manifest.mjs.map +1 -1
- package/dist/esm/components/Switch.manifest.native.js +1 -0
- package/dist/esm/components/Switch.manifest.native.js.map +1 -1
- package/dist/esm/components/Switch.mjs +44 -24
- package/dist/esm/components/Switch.mjs.map +1 -1
- package/dist/esm/components/Switch.native.js +44 -26
- package/dist/esm/components/Switch.native.js.map +1 -1
- package/dist/esm/components/Tabs.mjs +90 -18
- package/dist/esm/components/Tabs.mjs.map +1 -1
- package/dist/esm/components/Tabs.native.js +92 -19
- package/dist/esm/components/Tabs.native.js.map +1 -1
- package/dist/esm/components/Toast.manifest.mjs +9 -9
- package/dist/esm/components/Toast.manifest.mjs.map +1 -1
- package/dist/esm/components/Toast.manifest.native.js +9 -9
- package/dist/esm/components/Toast.manifest.native.js.map +1 -1
- package/dist/esm/components/Toast.mjs +10 -16
- package/dist/esm/components/Toast.mjs.map +1 -1
- package/dist/esm/components/Toast.native.js +10 -16
- package/dist/esm/components/Toast.native.js.map +1 -1
- package/dist/esm/components/ToggleGroup.mjs +35 -4
- package/dist/esm/components/ToggleGroup.mjs.map +1 -1
- package/dist/esm/components/ToggleGroup.native.js +35 -4
- package/dist/esm/components/ToggleGroup.native.js.map +1 -1
- package/dist/esm/components/facets.mjs +1 -3
- package/dist/esm/components/facets.mjs.map +1 -1
- package/dist/esm/components/facets.native.js +1 -3
- package/dist/esm/components/facets.native.js.map +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.mjs +2 -4
- package/dist/esm/index.native.js +2 -4
- package/dist/esm/views/Anchor.mjs +6 -12
- package/dist/esm/views/Anchor.mjs.map +1 -1
- package/dist/esm/views/Anchor.native.js +2 -7
- package/dist/esm/views/Anchor.native.js.map +1 -1
- package/dist/esm/views/EnsureFlexed.mjs +0 -1
- package/dist/esm/views/EnsureFlexed.mjs.map +1 -1
- package/dist/esm/views/EnsureFlexed.native.js +0 -1
- package/dist/esm/views/EnsureFlexed.native.js.map +1 -1
- package/dist/esm/views/VisuallyHidden.mjs +0 -1
- package/dist/esm/views/VisuallyHidden.mjs.map +1 -1
- package/dist/esm/views/VisuallyHidden.native.js +0 -1
- package/dist/esm/views/VisuallyHidden.native.js.map +1 -1
- package/dist/jsx/components/Accordion.mjs +4 -3
- package/dist/jsx/components/Accordion.mjs.map +1 -1
- package/dist/jsx/components/Accordion.native.cjs +12 -11
- package/dist/jsx/components/Accordion.native.js +12 -11
- package/dist/jsx/components/Accordion.native.js.map +1 -1
- package/dist/jsx/components/AlertDialog.manifest.mjs +1 -1
- package/dist/jsx/components/AlertDialog.manifest.mjs.map +1 -1
- package/dist/jsx/components/AlertDialog.manifest.native.cjs +1 -1
- package/dist/jsx/components/AlertDialog.manifest.native.js +1 -1
- package/dist/jsx/components/AlertDialog.manifest.native.js.map +1 -1
- package/dist/jsx/components/AlertDialog.mjs +2 -1
- package/dist/jsx/components/AlertDialog.mjs.map +1 -1
- package/dist/jsx/components/AlertDialog.native.cjs +14 -13
- package/dist/jsx/components/AlertDialog.native.js +14 -13
- package/dist/jsx/components/AlertDialog.native.js.map +1 -1
- package/dist/jsx/components/Button.manifest.mjs +1 -1
- package/dist/jsx/components/Button.manifest.mjs.map +1 -1
- package/dist/jsx/components/Button.manifest.native.cjs +1 -1
- package/dist/jsx/components/Button.manifest.native.js +1 -1
- package/dist/jsx/components/Button.manifest.native.js.map +1 -1
- package/dist/jsx/components/Button.mjs +52 -45
- package/dist/jsx/components/Button.mjs.map +1 -1
- package/dist/jsx/components/Button.native.cjs +72 -56
- package/dist/jsx/components/Button.native.js +72 -56
- package/dist/jsx/components/Button.native.js.map +1 -1
- package/dist/jsx/components/Card.mjs +43 -3
- package/dist/jsx/components/Card.mjs.map +1 -1
- package/dist/jsx/components/Card.native.cjs +50 -8
- package/dist/jsx/components/Card.native.js +50 -8
- package/dist/jsx/components/Card.native.js.map +1 -1
- package/dist/jsx/components/Checkbox.mjs +15 -13
- package/dist/jsx/components/Checkbox.mjs.map +1 -1
- package/dist/jsx/components/Checkbox.native.cjs +18 -16
- package/dist/jsx/components/Checkbox.native.js +18 -16
- package/dist/jsx/components/Checkbox.native.js.map +1 -1
- package/dist/jsx/components/Dialog.manifest.mjs +1 -1
- package/dist/jsx/components/Dialog.manifest.mjs.map +1 -1
- package/dist/jsx/components/Dialog.manifest.native.cjs +1 -1
- package/dist/jsx/components/Dialog.manifest.native.js +1 -1
- package/dist/jsx/components/Dialog.manifest.native.js.map +1 -1
- package/dist/jsx/components/Dialog.mjs +4 -3
- package/dist/jsx/components/Dialog.mjs.map +1 -1
- package/dist/jsx/components/Dialog.native.cjs +16 -15
- package/dist/jsx/components/Dialog.native.js +16 -15
- package/dist/jsx/components/Dialog.native.js.map +1 -1
- package/dist/jsx/components/Input.mjs +61 -5
- package/dist/jsx/components/Input.mjs.map +1 -1
- package/dist/jsx/components/Input.native.cjs +73 -11
- package/dist/jsx/components/Input.native.js +73 -11
- package/dist/jsx/components/Input.native.js.map +1 -1
- package/dist/jsx/components/Label.mjs +2 -1
- package/dist/jsx/components/Label.mjs.map +1 -1
- package/dist/jsx/components/Label.native.cjs +3 -2
- package/dist/jsx/components/Label.native.js +3 -2
- package/dist/jsx/components/Label.native.js.map +1 -1
- package/dist/jsx/components/ListItem.mjs +76 -4
- package/dist/jsx/components/ListItem.mjs.map +1 -1
- package/dist/jsx/components/ListItem.native.cjs +98 -13
- package/dist/jsx/components/ListItem.native.js +98 -13
- package/dist/jsx/components/ListItem.native.js.map +1 -1
- package/dist/jsx/components/Popover.mjs +4 -3
- package/dist/jsx/components/Popover.mjs.map +1 -1
- package/dist/jsx/components/Popover.native.cjs +15 -14
- package/dist/jsx/components/Popover.native.js +15 -14
- package/dist/jsx/components/Popover.native.js.map +1 -1
- package/dist/jsx/components/Progress.mjs +2 -1
- package/dist/jsx/components/Progress.mjs.map +1 -1
- package/dist/jsx/components/Progress.native.cjs +5 -4
- package/dist/jsx/components/Progress.native.js +5 -4
- package/dist/jsx/components/Progress.native.js.map +1 -1
- package/dist/jsx/components/RadioGroup.mjs +14 -12
- package/dist/jsx/components/RadioGroup.mjs.map +1 -1
- package/dist/jsx/components/RadioGroup.native.cjs +18 -16
- package/dist/jsx/components/RadioGroup.native.js +18 -16
- package/dist/jsx/components/RadioGroup.native.js.map +1 -1
- package/dist/jsx/components/Select.manifest.mjs +2 -2
- package/dist/jsx/components/Select.manifest.mjs.map +1 -1
- package/dist/jsx/components/Select.manifest.native.cjs +2 -2
- package/dist/jsx/components/Select.manifest.native.js +2 -2
- package/dist/jsx/components/Select.manifest.native.js.map +1 -1
- package/dist/jsx/components/Select.mjs +168 -72
- package/dist/jsx/components/Select.mjs.map +1 -1
- package/dist/jsx/components/Select.native.cjs +189 -94
- package/dist/jsx/components/Select.native.js +189 -94
- package/dist/jsx/components/Select.native.js.map +1 -1
- package/dist/jsx/components/Separator.mjs +2 -1
- package/dist/jsx/components/Separator.mjs.map +1 -1
- package/dist/jsx/components/Separator.native.cjs +3 -2
- package/dist/jsx/components/Separator.native.js +3 -2
- package/dist/jsx/components/Separator.native.js.map +1 -1
- package/dist/jsx/components/Sheet.manifest.mjs +1 -1
- package/dist/jsx/components/Sheet.manifest.mjs.map +1 -1
- package/dist/jsx/components/Sheet.manifest.native.cjs +1 -1
- package/dist/jsx/components/Sheet.manifest.native.js +1 -1
- package/dist/jsx/components/Sheet.manifest.native.js.map +1 -1
- package/dist/jsx/components/Sheet.mjs +3 -2
- package/dist/jsx/components/Sheet.mjs.map +1 -1
- package/dist/jsx/components/Sheet.native.cjs +17 -16
- package/dist/jsx/components/Sheet.native.js +17 -16
- package/dist/jsx/components/Sheet.native.js.map +1 -1
- package/dist/jsx/components/Slider.mjs +76 -5
- package/dist/jsx/components/Slider.mjs.map +1 -1
- package/dist/jsx/components/Slider.native.cjs +84 -10
- package/dist/jsx/components/Slider.native.js +84 -10
- package/dist/jsx/components/Slider.native.js.map +1 -1
- package/dist/jsx/components/Surface.mjs +2 -1
- package/dist/jsx/components/Surface.mjs.map +1 -1
- package/dist/jsx/components/Surface.native.cjs +4 -3
- package/dist/jsx/components/Surface.native.js +4 -3
- package/dist/jsx/components/Surface.native.js.map +1 -1
- package/dist/jsx/components/Switch.manifest.mjs +1 -0
- package/dist/jsx/components/Switch.manifest.mjs.map +1 -1
- package/dist/jsx/components/Switch.manifest.native.cjs +1 -0
- package/dist/jsx/components/Switch.manifest.native.js +1 -0
- package/dist/jsx/components/Switch.manifest.native.js.map +1 -1
- package/dist/jsx/components/Switch.mjs +44 -24
- package/dist/jsx/components/Switch.mjs.map +1 -1
- package/dist/jsx/components/Switch.native.cjs +47 -29
- package/dist/jsx/components/Switch.native.js +47 -29
- package/dist/jsx/components/Switch.native.js.map +1 -1
- package/dist/jsx/components/Tabs.mjs +90 -18
- package/dist/jsx/components/Tabs.mjs.map +1 -1
- package/dist/jsx/components/Tabs.native.cjs +95 -22
- package/dist/jsx/components/Tabs.native.js +95 -22
- package/dist/jsx/components/Tabs.native.js.map +1 -1
- package/dist/jsx/components/Toast.manifest.mjs +9 -9
- package/dist/jsx/components/Toast.manifest.mjs.map +1 -1
- package/dist/jsx/components/Toast.manifest.native.cjs +9 -9
- package/dist/jsx/components/Toast.manifest.native.js +9 -9
- package/dist/jsx/components/Toast.manifest.native.js.map +1 -1
- package/dist/jsx/components/Toast.mjs +10 -16
- package/dist/jsx/components/Toast.mjs.map +1 -1
- package/dist/jsx/components/Toast.native.cjs +22 -28
- package/dist/jsx/components/Toast.native.js +22 -28
- package/dist/jsx/components/Toast.native.js.map +1 -1
- package/dist/jsx/components/ToggleGroup.mjs +35 -4
- package/dist/jsx/components/ToggleGroup.mjs.map +1 -1
- package/dist/jsx/components/ToggleGroup.native.cjs +39 -8
- package/dist/jsx/components/ToggleGroup.native.js +39 -8
- package/dist/jsx/components/ToggleGroup.native.js.map +1 -1
- package/dist/jsx/components/facets.mjs +1 -3
- package/dist/jsx/components/facets.mjs.map +1 -1
- package/dist/jsx/components/facets.native.cjs +1 -2
- package/dist/jsx/components/facets.native.js +1 -2
- package/dist/jsx/components/facets.native.js.map +1 -1
- package/dist/jsx/index.js +2 -4
- package/dist/jsx/index.mjs +2 -4
- package/dist/jsx/index.native.cjs +0 -7
- package/dist/jsx/index.native.js +0 -7
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/views/Anchor.mjs +6 -12
- package/dist/jsx/views/Anchor.mjs.map +1 -1
- package/dist/jsx/views/Anchor.native.cjs +5 -10
- package/dist/jsx/views/Anchor.native.js +5 -10
- package/dist/jsx/views/Anchor.native.js.map +1 -1
- package/dist/jsx/views/EnsureFlexed.mjs +0 -1
- package/dist/jsx/views/EnsureFlexed.mjs.map +1 -1
- package/dist/jsx/views/EnsureFlexed.native.cjs +0 -1
- package/dist/jsx/views/EnsureFlexed.native.js +0 -1
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -1
- package/dist/jsx/views/VisuallyHidden.mjs +0 -1
- package/dist/jsx/views/VisuallyHidden.mjs.map +1 -1
- package/dist/jsx/views/VisuallyHidden.native.cjs +0 -1
- package/dist/jsx/views/VisuallyHidden.native.js +0 -1
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -1
- package/dist/native.cjs +17095 -13591
- package/dist/test.cjs +17096 -13599
- package/package.json +79 -68
- package/src/components/Accordion.tsx +4 -5
- package/src/components/AlertDialog.manifest.ts +1 -1
- package/src/components/AlertDialog.tsx +2 -2
- package/src/components/Button.manifest.ts +1 -1
- package/src/components/Button.tsx +77 -60
- package/src/components/Card.tsx +68 -6
- package/src/components/Checkbox.tsx +27 -16
- package/src/components/Dialog.manifest.ts +1 -1
- package/src/components/Dialog.tsx +5 -6
- package/src/components/Input.tsx +55 -7
- package/src/components/Label.tsx +2 -1
- package/src/components/ListItem.tsx +125 -12
- package/src/components/Popover.tsx +4 -9
- package/src/components/Progress.tsx +2 -4
- package/src/components/RadioGroup.tsx +24 -15
- package/src/components/Select.manifest.ts +3 -3
- package/src/components/Select.tsx +122 -91
- package/src/components/Separator.tsx +2 -1
- package/src/components/Sheet.manifest.ts +2 -2
- package/src/components/Sheet.tsx +3 -5
- package/src/components/Slider.tsx +76 -6
- package/src/components/Surface.tsx +2 -1
- package/src/components/Switch.manifest.ts +3 -0
- package/src/components/Switch.tsx +58 -29
- package/src/components/Tabs.tsx +59 -19
- package/src/components/Toast.manifest.ts +10 -10
- package/src/components/Toast.tsx +12 -16
- package/src/components/ToggleGroup.tsx +23 -9
- package/src/components/facets.tsx +1 -3
- package/src/index.ts +43 -30
- package/src/viewTypes.tsx +1 -1
- package/src/views/Anchor.native.tsx +37 -0
- package/src/views/Anchor.tsx +4 -22
- package/src/views/EnsureFlexed.tsx +0 -4
- package/src/views/VisuallyHidden.tsx +0 -3
- package/types/components/Accordion.d.ts +45 -45
- package/types/components/Accordion.d.ts.map +1 -1
- package/types/components/AlertDialog.d.ts +91 -103
- package/types/components/AlertDialog.d.ts.map +1 -1
- package/types/components/Button.d.ts +194 -168
- package/types/components/Button.d.ts.map +1 -1
- package/types/components/Card.d.ts +68 -63
- package/types/components/Card.d.ts.map +1 -1
- package/types/components/Checkbox.d.ts +102 -113
- package/types/components/Checkbox.d.ts.map +1 -1
- package/types/components/Dialog.d.ts +144 -189
- package/types/components/Dialog.d.ts.map +1 -1
- package/types/components/Input.d.ts +34 -37
- package/types/components/Input.d.ts.map +1 -1
- package/types/components/Label.d.ts +11 -11
- package/types/components/Label.d.ts.map +1 -1
- package/types/components/ListItem.d.ts +181 -144
- package/types/components/ListItem.d.ts.map +1 -1
- package/types/components/Popover.d.ts +30 -30
- package/types/components/Popover.d.ts.map +1 -1
- package/types/components/Progress.d.ts +54 -89
- package/types/components/Progress.d.ts.map +1 -1
- package/types/components/RadioGroup.d.ts +86 -73
- package/types/components/RadioGroup.d.ts.map +1 -1
- package/types/components/Select.d.ts +471 -470
- package/types/components/Select.d.ts.map +1 -1
- package/types/components/Separator.d.ts +8 -8
- package/types/components/Separator.d.ts.map +1 -1
- package/types/components/Sheet.d.ts +717 -429
- package/types/components/Sheet.d.ts.map +1 -1
- package/types/components/Slider.d.ts +106 -264
- package/types/components/Slider.d.ts.map +1 -1
- package/types/components/Surface.d.ts +9 -13
- package/types/components/Surface.d.ts.map +1 -1
- package/types/components/Switch.d.ts +64 -90
- package/types/components/Switch.d.ts.map +1 -1
- package/types/components/Switch.manifest.d.ts +1 -0
- package/types/components/Switch.manifest.d.ts.map +1 -1
- package/types/components/Tabs.d.ts +98 -136
- package/types/components/Tabs.d.ts.map +1 -1
- package/types/components/Toast.d.ts +68 -127
- package/types/components/Toast.d.ts.map +1 -1
- package/types/components/ToggleGroup.d.ts +34 -51
- package/types/components/ToggleGroup.d.ts.map +1 -1
- package/types/components/facets.d.ts +2 -2
- package/types/components/facets.d.ts.map +1 -1
- package/types/index.d.ts +11 -12
- package/types/index.d.ts.map +1 -1
- package/types/viewTypes.d.ts +1 -1
- package/types/viewTypes.d.ts.map +1 -1
- package/types/views/Anchor.d.ts +5 -9
- package/types/views/Anchor.d.ts.map +1 -1
- package/types/views/Anchor.native.d.ts +13 -0
- package/types/views/Anchor.native.d.ts.map +1 -0
- package/types/views/EnsureFlexed.d.ts +1 -1
- package/types/views/Fieldset.d.ts +2 -5
- package/types/views/Fieldset.d.ts.map +1 -1
- package/types/views/Text.d.ts +1 -1
- package/types/views/VisuallyHidden.d.ts +2 -2
|
@@ -25,29 +25,30 @@ __export(Accordion_exports, {
|
|
|
25
25
|
AccordionTrigger: () => AccordionTrigger
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(Accordion_exports);
|
|
28
|
-
var
|
|
28
|
+
var import_accordion = require("@tamagui/accordion");
|
|
29
|
+
var import_core = require("@tamagui/core");
|
|
29
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
const AccordionTrigger = (0,
|
|
31
|
+
const AccordionTrigger = (0, import_core.styled)(import_accordion.Accordion.Trigger, {
|
|
31
32
|
displayName: "AccordionTrigger",
|
|
32
33
|
cursor: "pointer",
|
|
33
34
|
backgroundColor: "background hover:background-hover press:background-press focus:background-focus",
|
|
34
|
-
padding:
|
|
35
|
+
padding: "4"
|
|
35
36
|
});
|
|
36
|
-
const AccordionContent = (0,
|
|
37
|
+
const AccordionContent = (0, import_core.styled)(import_accordion.Accordion.Content, {
|
|
37
38
|
displayName: "AccordionContent",
|
|
38
|
-
padding:
|
|
39
|
+
padding: "4",
|
|
39
40
|
backgroundColor: "background"
|
|
40
41
|
});
|
|
41
|
-
const AccordionRoot = (0,
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
42
|
+
const AccordionRoot = (0, import_core.createRefComponent)(function Accordion(props, ref) {
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_accordion.Accordion, {
|
|
43
44
|
...props,
|
|
44
45
|
ref
|
|
45
46
|
});
|
|
46
47
|
});
|
|
47
|
-
const Accordion2 = (0,
|
|
48
|
-
Header:
|
|
49
|
-
Item:
|
|
50
|
-
HeightAnimator:
|
|
48
|
+
const Accordion2 = (0, import_core.withStaticProperties)(AccordionRoot, {
|
|
49
|
+
Header: import_accordion.Accordion.Header,
|
|
50
|
+
Item: import_accordion.Accordion.Item,
|
|
51
|
+
HeightAnimator: import_accordion.Accordion.HeightAnimator,
|
|
51
52
|
Trigger: AccordionTrigger,
|
|
52
53
|
Content: AccordionContent
|
|
53
54
|
});
|
|
@@ -28,28 +28,29 @@ __export(Accordion_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Accordion_exports);
|
|
30
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var
|
|
32
|
-
var
|
|
31
|
+
var import_accordion = require("@tamagui/accordion");
|
|
32
|
+
var import_core = require("@tamagui/core");
|
|
33
|
+
var AccordionTrigger = (0, import_core.styled)(import_accordion.Accordion.Trigger, {
|
|
33
34
|
displayName: "AccordionTrigger",
|
|
34
35
|
cursor: "pointer",
|
|
35
36
|
backgroundColor: "background hover:background-hover press:background-press focus:background-focus",
|
|
36
|
-
padding:
|
|
37
|
+
padding: "4"
|
|
37
38
|
});
|
|
38
|
-
var AccordionContent = (0,
|
|
39
|
+
var AccordionContent = (0, import_core.styled)(import_accordion.Accordion.Content, {
|
|
39
40
|
displayName: "AccordionContent",
|
|
40
|
-
padding:
|
|
41
|
+
padding: "4",
|
|
41
42
|
backgroundColor: "background"
|
|
42
43
|
});
|
|
43
|
-
var AccordionRoot = (0,
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
var AccordionRoot = (0, import_core.createRefComponent)(function Accordion(props, ref) {
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_accordion.Accordion, {
|
|
45
46
|
...props,
|
|
46
47
|
ref
|
|
47
48
|
});
|
|
48
49
|
});
|
|
49
|
-
var Accordion2 = (0,
|
|
50
|
-
Header:
|
|
51
|
-
Item:
|
|
52
|
-
HeightAnimator:
|
|
50
|
+
var Accordion2 = (0, import_core.withStaticProperties)(AccordionRoot, {
|
|
51
|
+
Header: import_accordion.Accordion.Header,
|
|
52
|
+
Item: import_accordion.Accordion.Item,
|
|
53
|
+
HeightAnimator: import_accordion.Accordion.HeightAnimator,
|
|
53
54
|
Trigger: AccordionTrigger,
|
|
54
55
|
Content: AccordionContent
|
|
55
56
|
});
|
|
@@ -28,28 +28,29 @@ __export(Accordion_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(Accordion_exports);
|
|
30
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var
|
|
32
|
-
var
|
|
31
|
+
var import_accordion = require("@tamagui/accordion");
|
|
32
|
+
var import_core = require("@tamagui/core");
|
|
33
|
+
var AccordionTrigger = (0, import_core.styled)(import_accordion.Accordion.Trigger, {
|
|
33
34
|
displayName: "AccordionTrigger",
|
|
34
35
|
cursor: "pointer",
|
|
35
36
|
backgroundColor: "background hover:background-hover press:background-press focus:background-focus",
|
|
36
|
-
padding:
|
|
37
|
+
padding: "4"
|
|
37
38
|
});
|
|
38
|
-
var AccordionContent = (0,
|
|
39
|
+
var AccordionContent = (0, import_core.styled)(import_accordion.Accordion.Content, {
|
|
39
40
|
displayName: "AccordionContent",
|
|
40
|
-
padding:
|
|
41
|
+
padding: "4",
|
|
41
42
|
backgroundColor: "background"
|
|
42
43
|
});
|
|
43
|
-
var AccordionRoot = (0,
|
|
44
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
var AccordionRoot = (0, import_core.createRefComponent)(function Accordion(props, ref) {
|
|
45
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_accordion.Accordion, {
|
|
45
46
|
...props,
|
|
46
47
|
ref
|
|
47
48
|
});
|
|
48
49
|
});
|
|
49
|
-
var Accordion2 = (0,
|
|
50
|
-
Header:
|
|
51
|
-
Item:
|
|
52
|
-
HeightAnimator:
|
|
50
|
+
var Accordion2 = (0, import_core.withStaticProperties)(AccordionRoot, {
|
|
51
|
+
Header: import_accordion.Accordion.Header,
|
|
52
|
+
Item: import_accordion.Accordion.Item,
|
|
53
|
+
HeightAnimator: import_accordion.Accordion.HeightAnimator,
|
|
53
54
|
Trigger: AccordionTrigger,
|
|
54
55
|
Content: AccordionContent
|
|
55
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.native.js","names":[],"sources":["cjs/components/Accordion.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Accordion_exports = {};\n__export(Accordion_exports, {\n Accordion: () => Accordion2,\n AccordionContent: () => AccordionContent,\n AccordionTrigger: () => AccordionTrigger\n});\nmodule.exports = __toCommonJS(Accordion_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar
|
|
1
|
+
{"version":3,"file":"Accordion.native.js","names":[],"sources":["cjs/components/Accordion.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Accordion_exports = {};\n__export(Accordion_exports, {\n Accordion: () => Accordion2,\n AccordionContent: () => AccordionContent,\n AccordionTrigger: () => AccordionTrigger\n});\nmodule.exports = __toCommonJS(Accordion_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_accordion = require(\"@tamagui/accordion\");\nvar import_core = require(\"@tamagui/core\");\nvar AccordionTrigger = (0, import_core.styled)(import_accordion.Accordion.Trigger, {\n displayName: \"AccordionTrigger\",\n cursor: \"pointer\",\n backgroundColor: \"background hover:background-hover press:background-press focus:background-focus\",\n padding: \"4\"\n});\nvar AccordionContent = (0, import_core.styled)(import_accordion.Accordion.Content, {\n displayName: \"AccordionContent\",\n padding: \"4\",\n backgroundColor: \"background\"\n});\nvar AccordionRoot = (0, import_core.createRefComponent)(function Accordion(props, ref) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_accordion.Accordion, {\n ...props,\n ref\n });\n});\nvar Accordion2 = (0, import_core.withStaticProperties)(AccordionRoot, {\n Header: import_accordion.Accordion.Header,\n Item: import_accordion.Accordion.Item,\n HeightAnimator: import_accordion.Accordion.HeightAnimator,\n Trigger: AccordionTrigger,\n Content: AccordionContent\n});\n//# sourceMappingURL=Accordion.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,SAAS,mBAAmB;CAC1B,iBAAiB;CACjB,wBAAwB;CACxB,wBAAwB;AAC1B,CAAC;AACD,OAAO,UAAU,aAAa,iBAAiB;AAC/C,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,oBAAoB,GAAG,YAAY,OAAM,CAAE,iBAAiB,UAAU,SAAS;CACjF,aAAa;CACb,QAAQ;CACR,iBAAiB;CACjB,SAAS;AACX,CAAC;AACD,IAAI,oBAAoB,GAAG,YAAY,OAAM,CAAE,iBAAiB,UAAU,SAAS;CACjF,aAAa;CACb,SAAS;CACT,iBAAiB;AACnB,CAAC;AACD,IAAI,iBAAiB,GAAG,YAAY,mBAAkB,CAAE,SAAS,UAAU,OAAO,KAAK;CACrF,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,iBAAiB,WAAW;EAC7E,GAAG;EACH;CACF,CAAC;AACH,CAAC;AACD,IAAI,cAAc,GAAG,YAAY,qBAAoB,CAAE,eAAe;CACpE,QAAQ,iBAAiB,UAAU;CACnC,MAAM,iBAAiB,UAAU;CACjC,gBAAgB,iBAAiB,UAAU;CAC3C,SAAS;CACT,SAAS;AACX,CAAC"}
|
|
@@ -25,28 +25,29 @@ __export(AlertDialog_exports, {
|
|
|
25
25
|
AlertDialogOverlay: () => AlertDialogOverlay
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
28
|
-
var
|
|
28
|
+
var import_alert_dialog = require("@tamagui/alert-dialog");
|
|
29
|
+
var import_core = require("@tamagui/core");
|
|
29
30
|
var import_Dialog = require("./Dialog.cjs");
|
|
30
31
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
const AlertDialogOverlay = (0,
|
|
32
|
+
const AlertDialogOverlay = (0, import_core.styled)(import_alert_dialog.AlertDialog.Overlay, {
|
|
32
33
|
displayName: "AlertDialogOverlay",
|
|
33
34
|
...import_Dialog.dialogOverlayStyles
|
|
34
35
|
});
|
|
35
|
-
const AlertDialogContent = (0,
|
|
36
|
+
const AlertDialogContent = (0, import_core.styled)(import_alert_dialog.AlertDialog.Content, {
|
|
36
37
|
displayName: "AlertDialogContent",
|
|
37
38
|
...import_Dialog.dialogContentStyles
|
|
38
39
|
});
|
|
39
|
-
const AlertDialogRoot = (0,
|
|
40
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
+
const AlertDialogRoot = (0, import_core.createRefComponent)(function AlertDialog(props, _ref) {
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog, { ...props });
|
|
41
42
|
});
|
|
42
|
-
const AlertDialog2 = (0,
|
|
43
|
-
Trigger:
|
|
44
|
-
Portal:
|
|
45
|
-
Title:
|
|
46
|
-
Description:
|
|
47
|
-
Action:
|
|
48
|
-
Cancel:
|
|
49
|
-
Destructive:
|
|
43
|
+
const AlertDialog2 = (0, import_core.withStaticProperties)(AlertDialogRoot, {
|
|
44
|
+
Trigger: import_alert_dialog.AlertDialog.Trigger,
|
|
45
|
+
Portal: import_alert_dialog.AlertDialog.Portal,
|
|
46
|
+
Title: import_alert_dialog.AlertDialog.Title,
|
|
47
|
+
Description: import_alert_dialog.AlertDialog.Description,
|
|
48
|
+
Action: import_alert_dialog.AlertDialog.Action,
|
|
49
|
+
Cancel: import_alert_dialog.AlertDialog.Cancel,
|
|
50
|
+
Destructive: import_alert_dialog.AlertDialog.Destructive,
|
|
50
51
|
Overlay: AlertDialogOverlay,
|
|
51
52
|
Content: AlertDialogContent
|
|
52
53
|
});
|
|
@@ -22,7 +22,7 @@ var AlertDialog_manifest_exports = {};
|
|
|
22
22
|
__export(AlertDialog_manifest_exports, { manifest: () => manifest });
|
|
23
23
|
module.exports = __toCommonJS(AlertDialog_manifest_exports);
|
|
24
24
|
const manifest = {
|
|
25
|
-
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/
|
|
25
|
+
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/shadow on the Content, over the unstyled @tamagui/ui AlertDialog behavior.",
|
|
26
26
|
categories: ["overlay"],
|
|
27
27
|
tokens: ["background", "border-color"],
|
|
28
28
|
native: ["requires a Portal provider at the app root for the alert dialog to mount above content"]
|
|
@@ -24,7 +24,7 @@ var AlertDialog_manifest_exports = {};
|
|
|
24
24
|
__export(AlertDialog_manifest_exports, { manifest: () => manifest });
|
|
25
25
|
module.exports = __toCommonJS(AlertDialog_manifest_exports);
|
|
26
26
|
var manifest = {
|
|
27
|
-
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/
|
|
27
|
+
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/shadow on the Content, over the unstyled @tamagui/ui AlertDialog behavior.",
|
|
28
28
|
categories: ["overlay"],
|
|
29
29
|
tokens: ["background", "border-color"],
|
|
30
30
|
native: ["requires a Portal provider at the app root for the alert dialog to mount above content"]
|
|
@@ -24,7 +24,7 @@ var AlertDialog_manifest_exports = {};
|
|
|
24
24
|
__export(AlertDialog_manifest_exports, { manifest: () => manifest });
|
|
25
25
|
module.exports = __toCommonJS(AlertDialog_manifest_exports);
|
|
26
26
|
var manifest = {
|
|
27
|
-
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/
|
|
27
|
+
description: "v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/shadow on the Content, over the unstyled @tamagui/ui AlertDialog behavior.",
|
|
28
28
|
categories: ["overlay"],
|
|
29
29
|
tokens: ["background", "border-color"],
|
|
30
30
|
native: ["requires a Portal provider at the app root for the alert dialog to mount above content"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.manifest.native.js","names":[],"sources":["cjs/components/AlertDialog.manifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AlertDialog_manifest_exports = {};\n__export(AlertDialog_manifest_exports, {\n manifest: () => manifest\n});\nmodule.exports = __toCommonJS(AlertDialog_manifest_exports);\nvar manifest = {\n description: \"v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/
|
|
1
|
+
{"version":3,"file":"AlertDialog.manifest.native.js","names":[],"sources":["cjs/components/AlertDialog.manifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AlertDialog_manifest_exports = {};\n__export(AlertDialog_manifest_exports, {\n manifest: () => manifest\n});\nmodule.exports = __toCommonJS(AlertDialog_manifest_exports);\nvar manifest = {\n description: \"v2-look AlertDialog: scrim background on the Overlay and background/border/padding/radius/shadow on the Content, over the unstyled @tamagui/ui AlertDialog behavior.\",\n categories: [\n \"overlay\"\n ],\n tokens: [\n \"background\",\n \"border-color\"\n ],\n native: [\n \"requires a Portal provider at the app root for the alert dialog to mount above content\"\n ]\n};\n//# sourceMappingURL=AlertDialog.manifest.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,+BAA+B,CAAC;AACpC,SAAS,8BAA8B,EACrC,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,4BAA4B;AAC1D,IAAI,WAAW;CACb,aAAa;CACb,YAAY,CACV,SACF;CACA,QAAQ,CACN,cACA,cACF;CACA,QAAQ,CACN,wFACF;AACF"}
|
|
@@ -28,27 +28,28 @@ __export(AlertDialog_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
30
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var
|
|
31
|
+
var import_alert_dialog = require("@tamagui/alert-dialog");
|
|
32
|
+
var import_core = require("@tamagui/core");
|
|
32
33
|
var import_Dialog = require("./Dialog.native.js");
|
|
33
|
-
var AlertDialogOverlay = (0,
|
|
34
|
+
var AlertDialogOverlay = (0, import_core.styled)(import_alert_dialog.AlertDialog.Overlay, {
|
|
34
35
|
displayName: "AlertDialogOverlay",
|
|
35
36
|
...import_Dialog.dialogOverlayStyles
|
|
36
37
|
});
|
|
37
|
-
var AlertDialogContent = (0,
|
|
38
|
+
var AlertDialogContent = (0, import_core.styled)(import_alert_dialog.AlertDialog.Content, {
|
|
38
39
|
displayName: "AlertDialogContent",
|
|
39
40
|
...import_Dialog.dialogContentStyles
|
|
40
41
|
});
|
|
41
|
-
var AlertDialogRoot = (0,
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
42
|
+
var AlertDialogRoot = (0, import_core.createRefComponent)(function AlertDialog(props, _ref) {
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog, { ...props });
|
|
43
44
|
});
|
|
44
|
-
var AlertDialog2 = (0,
|
|
45
|
-
Trigger:
|
|
46
|
-
Portal:
|
|
47
|
-
Title:
|
|
48
|
-
Description:
|
|
49
|
-
Action:
|
|
50
|
-
Cancel:
|
|
51
|
-
Destructive:
|
|
45
|
+
var AlertDialog2 = (0, import_core.withStaticProperties)(AlertDialogRoot, {
|
|
46
|
+
Trigger: import_alert_dialog.AlertDialog.Trigger,
|
|
47
|
+
Portal: import_alert_dialog.AlertDialog.Portal,
|
|
48
|
+
Title: import_alert_dialog.AlertDialog.Title,
|
|
49
|
+
Description: import_alert_dialog.AlertDialog.Description,
|
|
50
|
+
Action: import_alert_dialog.AlertDialog.Action,
|
|
51
|
+
Cancel: import_alert_dialog.AlertDialog.Cancel,
|
|
52
|
+
Destructive: import_alert_dialog.AlertDialog.Destructive,
|
|
52
53
|
Overlay: AlertDialogOverlay,
|
|
53
54
|
Content: AlertDialogContent
|
|
54
55
|
});
|
|
@@ -28,27 +28,28 @@ __export(AlertDialog_exports, {
|
|
|
28
28
|
});
|
|
29
29
|
module.exports = __toCommonJS(AlertDialog_exports);
|
|
30
30
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
var
|
|
31
|
+
var import_alert_dialog = require("@tamagui/alert-dialog");
|
|
32
|
+
var import_core = require("@tamagui/core");
|
|
32
33
|
var import_Dialog = require("./Dialog.native.js");
|
|
33
|
-
var AlertDialogOverlay = (0,
|
|
34
|
+
var AlertDialogOverlay = (0, import_core.styled)(import_alert_dialog.AlertDialog.Overlay, {
|
|
34
35
|
displayName: "AlertDialogOverlay",
|
|
35
36
|
...import_Dialog.dialogOverlayStyles
|
|
36
37
|
});
|
|
37
|
-
var AlertDialogContent = (0,
|
|
38
|
+
var AlertDialogContent = (0, import_core.styled)(import_alert_dialog.AlertDialog.Content, {
|
|
38
39
|
displayName: "AlertDialogContent",
|
|
39
40
|
...import_Dialog.dialogContentStyles
|
|
40
41
|
});
|
|
41
|
-
var AlertDialogRoot = (0,
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
42
|
+
var AlertDialogRoot = (0, import_core.createRefComponent)(function AlertDialog(props, _ref) {
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog, { ...props });
|
|
43
44
|
});
|
|
44
|
-
var AlertDialog2 = (0,
|
|
45
|
-
Trigger:
|
|
46
|
-
Portal:
|
|
47
|
-
Title:
|
|
48
|
-
Description:
|
|
49
|
-
Action:
|
|
50
|
-
Cancel:
|
|
51
|
-
Destructive:
|
|
45
|
+
var AlertDialog2 = (0, import_core.withStaticProperties)(AlertDialogRoot, {
|
|
46
|
+
Trigger: import_alert_dialog.AlertDialog.Trigger,
|
|
47
|
+
Portal: import_alert_dialog.AlertDialog.Portal,
|
|
48
|
+
Title: import_alert_dialog.AlertDialog.Title,
|
|
49
|
+
Description: import_alert_dialog.AlertDialog.Description,
|
|
50
|
+
Action: import_alert_dialog.AlertDialog.Action,
|
|
51
|
+
Cancel: import_alert_dialog.AlertDialog.Cancel,
|
|
52
|
+
Destructive: import_alert_dialog.AlertDialog.Destructive,
|
|
52
53
|
Overlay: AlertDialogOverlay,
|
|
53
54
|
Content: AlertDialogContent
|
|
54
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.native.js","names":[],"sources":["cjs/components/AlertDialog.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AlertDialog_exports = {};\n__export(AlertDialog_exports, {\n AlertDialog: () => AlertDialog2,\n AlertDialogContent: () => AlertDialogContent,\n AlertDialogOverlay: () => AlertDialogOverlay\n});\nmodule.exports = __toCommonJS(AlertDialog_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar
|
|
1
|
+
{"version":3,"file":"AlertDialog.native.js","names":[],"sources":["cjs/components/AlertDialog.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar AlertDialog_exports = {};\n__export(AlertDialog_exports, {\n AlertDialog: () => AlertDialog2,\n AlertDialogContent: () => AlertDialogContent,\n AlertDialogOverlay: () => AlertDialogOverlay\n});\nmodule.exports = __toCommonJS(AlertDialog_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_alert_dialog = require(\"@tamagui/alert-dialog\");\nvar import_core = require(\"@tamagui/core\");\nvar import_Dialog = require(\"./Dialog\");\nvar AlertDialogOverlay = (0, import_core.styled)(import_alert_dialog.AlertDialog.Overlay, {\n displayName: \"AlertDialogOverlay\",\n ...import_Dialog.dialogOverlayStyles\n});\nvar AlertDialogContent = (0, import_core.styled)(import_alert_dialog.AlertDialog.Content, {\n displayName: \"AlertDialogContent\",\n ...import_Dialog.dialogContentStyles\n});\nvar AlertDialogRoot = (0, import_core.createRefComponent)(function AlertDialog(props, _ref) {\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_alert_dialog.AlertDialog, {\n ...props\n });\n});\nvar AlertDialog2 = (0, import_core.withStaticProperties)(AlertDialogRoot, {\n Trigger: import_alert_dialog.AlertDialog.Trigger,\n Portal: import_alert_dialog.AlertDialog.Portal,\n Title: import_alert_dialog.AlertDialog.Title,\n Description: import_alert_dialog.AlertDialog.Description,\n Action: import_alert_dialog.AlertDialog.Action,\n Cancel: import_alert_dialog.AlertDialog.Cancel,\n Destructive: import_alert_dialog.AlertDialog.Destructive,\n Overlay: AlertDialogOverlay,\n Content: AlertDialogContent\n});\n//# sourceMappingURL=AlertDialog.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,sBAAsB,CAAC;AAC3B,SAAS,qBAAqB;CAC5B,mBAAmB;CACnB,0BAA0B;CAC1B,0BAA0B;AAC5B,CAAC;AACD,OAAO,UAAU,aAAa,mBAAmB;AACjD,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,sBAAsB,QAAQ,uBAAuB;AACzD,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,sBAAsB,GAAG,YAAY,OAAM,CAAE,oBAAoB,YAAY,SAAS;CACxF,aAAa;CACb,GAAG,cAAc;AACnB,CAAC;AACD,IAAI,sBAAsB,GAAG,YAAY,OAAM,CAAE,oBAAoB,YAAY,SAAS;CACxF,aAAa;CACb,GAAG,cAAc;AACnB,CAAC;AACD,IAAI,mBAAmB,GAAG,YAAY,mBAAkB,CAAE,SAAS,YAAY,OAAO,MAAM;CAC1F,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,oBAAoB,aAAa,EAClF,GAAG,MACL,CAAC;AACH,CAAC;AACD,IAAI,gBAAgB,GAAG,YAAY,qBAAoB,CAAE,iBAAiB;CACxE,SAAS,oBAAoB,YAAY;CACzC,QAAQ,oBAAoB,YAAY;CACxC,OAAO,oBAAoB,YAAY;CACvC,aAAa,oBAAoB,YAAY;CAC7C,QAAQ,oBAAoB,YAAY;CACxC,QAAQ,oBAAoB,YAAY;CACxC,aAAa,oBAAoB,YAAY;CAC7C,SAAS;CACT,SAAS;AACX,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all) __defProp(target, name, {
|
|
@@ -17,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
19
|
}
|
|
18
20
|
return to;
|
|
19
21
|
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
20
26
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
27
|
var Button_exports = {};
|
|
22
28
|
__export(Button_exports, {
|
|
@@ -26,37 +32,39 @@ __export(Button_exports, {
|
|
|
26
32
|
ButtonText: () => ButtonText
|
|
27
33
|
});
|
|
28
34
|
module.exports = __toCommonJS(Button_exports);
|
|
29
|
-
var
|
|
35
|
+
var import_button = require("@tamagui/button");
|
|
36
|
+
var import_core = require("@tamagui/core");
|
|
37
|
+
var import_helpers_tamagui = require("@tamagui/helpers-tamagui");
|
|
38
|
+
var import_react = __toESM(require("react"), 1);
|
|
30
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
const ButtonContext = (0, import_core.createStyledContext)({ size: "md" });
|
|
41
|
+
const buttonSizing = (size, env) => (0, import_core.resolveSizing)(size, env) ?? (0, import_core.resolveSizing)(void 0, env);
|
|
42
|
+
const getButtonFrameSize = import_core.styled.dynamic((val, env) => {
|
|
43
|
+
const sizing = (0, import_core.resolveSizing)(val, env);
|
|
44
|
+
if (!sizing) return;
|
|
36
45
|
return {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
paddingInline: sizing.paddingInline,
|
|
47
|
+
paddingBlock: sizing.paddingBlock,
|
|
48
|
+
borderRadius: sizing.radius,
|
|
49
|
+
gap: sizing.gap,
|
|
50
|
+
minHeight: sizing.height + 2,
|
|
41
51
|
width: "auto"
|
|
42
52
|
};
|
|
43
53
|
});
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
font: env.font
|
|
48
|
-
});
|
|
54
|
+
const getButtonTextSize = import_core.styled.dynamic((val, env) => {
|
|
55
|
+
const sizing = (0, import_core.resolveSizing)(val, env);
|
|
56
|
+
if (!sizing) return;
|
|
49
57
|
return {
|
|
50
|
-
fontSize:
|
|
51
|
-
lineHeight:
|
|
58
|
+
fontSize: sizing.fontSize,
|
|
59
|
+
lineHeight: sizing.lineHeight
|
|
52
60
|
};
|
|
53
61
|
});
|
|
54
|
-
const ButtonFrameBase = (0,
|
|
55
|
-
context:
|
|
62
|
+
const ButtonFrameBase = (0, import_core.styled)(import_button.ButtonFrame, {
|
|
63
|
+
context: ButtonContext,
|
|
56
64
|
displayName: "ButtonFrame",
|
|
57
65
|
className: "tm-button",
|
|
58
66
|
backgroundColor: "background hover:background-hover press:background-press",
|
|
59
|
-
borderColor: "
|
|
67
|
+
borderColor: "transparent",
|
|
60
68
|
borderStyle: "solid",
|
|
61
69
|
borderWidth: 1,
|
|
62
70
|
cursor: "web:pointer",
|
|
@@ -65,8 +73,8 @@ const ButtonFrameBase = (0, import_ui.styled)(import_ui.ButtonFrame, {
|
|
|
65
73
|
outlineStyle: "focus-visible:solid",
|
|
66
74
|
outlineWidth: "focus-visible:2px",
|
|
67
75
|
variants: {
|
|
68
|
-
size:
|
|
69
|
-
circular:
|
|
76
|
+
size: getButtonFrameSize,
|
|
77
|
+
circular: import_core.styled.dynamic(),
|
|
70
78
|
disabled: { true: { opacity: .35 } },
|
|
71
79
|
variant: {
|
|
72
80
|
outlined: {
|
|
@@ -79,60 +87,65 @@ const ButtonFrameBase = (0, import_ui.styled)(import_ui.ButtonFrame, {
|
|
|
79
87
|
}
|
|
80
88
|
}
|
|
81
89
|
},
|
|
82
|
-
defaultVariants: { size:
|
|
90
|
+
defaultVariants: { size: "md" }
|
|
83
91
|
});
|
|
84
92
|
const ButtonFrame = ButtonFrameBase.resolve((props, env) => {
|
|
85
93
|
if (!props.circular) return;
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
});
|
|
94
|
+
const sizing = buttonSizing(props.size, env);
|
|
95
|
+
if (!sizing) return;
|
|
96
|
+
const side = sizing.height + 2;
|
|
90
97
|
return {
|
|
91
98
|
borderRadius: 1e3,
|
|
92
99
|
paddingHorizontal: 0,
|
|
93
|
-
height:
|
|
94
|
-
maxHeight:
|
|
95
|
-
maxWidth:
|
|
96
|
-
minWidth:
|
|
97
|
-
width:
|
|
100
|
+
height: side,
|
|
101
|
+
maxHeight: side,
|
|
102
|
+
maxWidth: side,
|
|
103
|
+
minWidth: side,
|
|
104
|
+
width: side
|
|
98
105
|
};
|
|
99
106
|
});
|
|
100
|
-
const ButtonText = (0,
|
|
101
|
-
context:
|
|
107
|
+
const ButtonText = (0, import_core.styled)(import_button.ButtonText, {
|
|
108
|
+
context: ButtonContext,
|
|
102
109
|
displayName: "ButtonText",
|
|
103
110
|
color: "color",
|
|
104
111
|
fontWeight: "600",
|
|
105
112
|
userSelect: "none",
|
|
106
|
-
variants: { size:
|
|
107
|
-
defaultVariants: { size:
|
|
113
|
+
variants: { size: getButtonTextSize },
|
|
114
|
+
defaultVariants: { size: "md" }
|
|
108
115
|
});
|
|
109
116
|
const ButtonIcon = ({ size, ...props }) => {
|
|
110
|
-
const context =
|
|
111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
117
|
+
const context = ButtonContext.useStyledContext();
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.ButtonIcon, {
|
|
112
119
|
...props,
|
|
113
|
-
size: size ?? (0,
|
|
120
|
+
size: size ?? (0, import_helpers_tamagui.getThemedIconSize)(buttonSizing(context?.size)?.icon)
|
|
114
121
|
});
|
|
115
122
|
};
|
|
116
|
-
const ButtonComponent = (0,
|
|
123
|
+
const ButtonComponent = (0, import_core.createStyledHOC)(ButtonFrame, function Button(props, ref) {
|
|
117
124
|
const { theme, ...buttonBehaviorProps } = props;
|
|
118
|
-
const
|
|
119
|
-
const { props: buttonProps } = (0, import_ui.useButton)(buttonBehaviorProps, {
|
|
120
|
-
Text: ButtonText,
|
|
121
|
-
iconSize: (0, import_ui.getThemedIconSize)(size)
|
|
122
|
-
});
|
|
123
|
-
const button = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Theme, {
|
|
125
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, {
|
|
124
126
|
name: "level2",
|
|
125
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonInner, {
|
|
126
128
|
ref,
|
|
127
|
-
|
|
129
|
+
buttonBehaviorProps
|
|
128
130
|
})
|
|
129
131
|
});
|
|
130
|
-
return theme ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
132
|
+
return theme ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.Theme, {
|
|
131
133
|
name: theme,
|
|
132
|
-
children:
|
|
133
|
-
}) :
|
|
134
|
+
children: content
|
|
135
|
+
}) : content;
|
|
134
136
|
}, { disableTheme: true });
|
|
135
|
-
const
|
|
137
|
+
const ButtonInner = import_react.default.forwardRef(function ButtonInner2({ buttonBehaviorProps }, ref) {
|
|
138
|
+
const size = buttonBehaviorProps.size ?? ButtonContext.useStyledContext()?.size ?? "md";
|
|
139
|
+
const { props: buttonProps } = (0, import_button.useButton)(buttonBehaviorProps, {
|
|
140
|
+
Text: ButtonText,
|
|
141
|
+
iconSize: (0, import_helpers_tamagui.getThemedIconSize)(buttonSizing(size)?.icon)
|
|
142
|
+
});
|
|
143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonFrame, {
|
|
144
|
+
ref,
|
|
145
|
+
...buttonProps
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
const Button2 = (0, import_core.withStaticProperties)(ButtonComponent, {
|
|
136
149
|
Frame: ButtonFrame,
|
|
137
150
|
Icon: ButtonIcon,
|
|
138
151
|
Text: ButtonText
|
|
@@ -22,7 +22,7 @@ var Button_manifest_exports = {};
|
|
|
22
22
|
__export(Button_manifest_exports, { manifest: () => manifest });
|
|
23
23
|
module.exports = __toCommonJS(Button_manifest_exports);
|
|
24
24
|
const manifest = {
|
|
25
|
-
description: "v2-look Button:
|
|
25
|
+
description: "v2-look Button: named sizes from the inline size table, circular and variant (outlined/quiet) skins, icon + text composition on the unstyled @tamagui/ui Button behavior.",
|
|
26
26
|
categories: ["form", "buttons"],
|
|
27
27
|
tokens: [
|
|
28
28
|
"background",
|
|
@@ -24,7 +24,7 @@ var Button_manifest_exports = {};
|
|
|
24
24
|
__export(Button_manifest_exports, { manifest: () => manifest });
|
|
25
25
|
module.exports = __toCommonJS(Button_manifest_exports);
|
|
26
26
|
var manifest = {
|
|
27
|
-
description: "v2-look Button:
|
|
27
|
+
description: "v2-look Button: named sizes from the inline size table, circular and variant (outlined/quiet) skins, icon + text composition on the unstyled @tamagui/ui Button behavior.",
|
|
28
28
|
categories: ["form", "buttons"],
|
|
29
29
|
tokens: [
|
|
30
30
|
"background",
|
|
@@ -24,7 +24,7 @@ var Button_manifest_exports = {};
|
|
|
24
24
|
__export(Button_manifest_exports, { manifest: () => manifest });
|
|
25
25
|
module.exports = __toCommonJS(Button_manifest_exports);
|
|
26
26
|
var manifest = {
|
|
27
|
-
description: "v2-look Button:
|
|
27
|
+
description: "v2-look Button: named sizes from the inline size table, circular and variant (outlined/quiet) skins, icon + text composition on the unstyled @tamagui/ui Button behavior.",
|
|
28
28
|
categories: ["form", "buttons"],
|
|
29
29
|
tokens: [
|
|
30
30
|
"background",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.manifest.native.js","names":[],"sources":["cjs/components/Button.manifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Button_manifest_exports = {};\n__export(Button_manifest_exports, {\n manifest: () => manifest\n});\nmodule.exports = __toCommonJS(Button_manifest_exports);\nvar manifest = {\n description: \"v2-look Button:
|
|
1
|
+
{"version":3,"file":"Button.manifest.native.js","names":[],"sources":["cjs/components/Button.manifest.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Button_manifest_exports = {};\n__export(Button_manifest_exports, {\n manifest: () => manifest\n});\nmodule.exports = __toCommonJS(Button_manifest_exports);\nvar manifest = {\n description: \"v2-look Button: named sizes from the inline size table, circular and variant (outlined/quiet) skins, icon + text composition on the unstyled @tamagui/ui Button behavior.\",\n categories: [\n \"form\",\n \"buttons\"\n ],\n tokens: [\n \"background\",\n \"background-hover\",\n \"background-press\",\n \"border-color\",\n \"border-color-hover\",\n \"outline-color\",\n \"color\"\n ]\n};\n//# sourceMappingURL=Button.manifest.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,WAAW;CACb,aAAa;CACb,YAAY,CACV,QACA,SACF;CACA,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|