@luxonis/common-fe-components 1.24.1 → 1.24.3
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/components/custom/Alert.d.ts +3 -1
- package/dist/components/custom/Alert.d.ts.map +1 -1
- package/dist/components/custom/Alert.js +6 -5
- package/dist/components/custom/Alert.js.map +1 -1
- package/dist/components/custom/Badge.d.ts +1 -1
- package/dist/components/custom/Badge.d.ts.map +1 -1
- package/dist/components/custom/Badge.js +7 -7
- package/dist/components/custom/Badge.js.map +1 -1
- package/dist/components/custom/BadgeButton.d.ts.map +1 -1
- package/dist/components/custom/BadgeButton.js +3 -3
- package/dist/components/custom/BadgeButton.js.map +1 -1
- package/dist/components/custom/BadgeLine.d.ts +1 -1
- package/dist/components/custom/BadgeLine.d.ts.map +1 -1
- package/dist/components/custom/BadgeLine.js +4 -4
- package/dist/components/custom/BadgeLine.js.map +1 -1
- package/dist/components/custom/Button.d.ts +5 -5
- package/dist/components/custom/Button.d.ts.map +1 -1
- package/dist/components/custom/Button.js +23 -15
- package/dist/components/custom/Button.js.map +1 -1
- package/dist/components/custom/Card.d.ts.map +1 -1
- package/dist/components/custom/Card.js +9 -7
- package/dist/components/custom/Card.js.map +1 -1
- package/dist/components/custom/CardList.d.ts +3 -3
- package/dist/components/custom/CardList.d.ts.map +1 -1
- package/dist/components/custom/CardList.js +7 -6
- package/dist/components/custom/CardList.js.map +1 -1
- package/dist/components/custom/Checkbox.d.ts +3 -1
- package/dist/components/custom/Checkbox.d.ts.map +1 -1
- package/dist/components/custom/Checkbox.js +10 -8
- package/dist/components/custom/Checkbox.js.map +1 -1
- package/dist/components/custom/Circle.d.ts +3 -3
- package/dist/components/custom/Circle.d.ts.map +1 -1
- package/dist/components/custom/Circle.js +6 -5
- package/dist/components/custom/Circle.js.map +1 -1
- package/dist/components/custom/Command.d.ts.map +1 -1
- package/dist/components/custom/Command.js +1 -1
- package/dist/components/custom/Command.js.map +1 -1
- package/dist/components/custom/DatePicker.d.ts.map +1 -1
- package/dist/components/custom/DatePicker.js +17 -11
- package/dist/components/custom/DatePicker.js.map +1 -1
- package/dist/components/custom/DropdownMenu.d.ts +2 -2
- package/dist/components/custom/DropdownMenu.d.ts.map +1 -1
- package/dist/components/custom/DropdownMenu.js +3 -3
- package/dist/components/custom/DropdownMenu.js.map +1 -1
- package/dist/components/custom/Dropzone.d.ts +2 -2
- package/dist/components/custom/Dropzone.d.ts.map +1 -1
- package/dist/components/custom/Dropzone.js +30 -20
- package/dist/components/custom/Dropzone.js.map +1 -1
- package/dist/components/custom/EmptyView.d.ts.map +1 -1
- package/dist/components/custom/EmptyView.js +4 -3
- package/dist/components/custom/EmptyView.js.map +1 -1
- package/dist/components/custom/ErrorView.d.ts +1 -1
- package/dist/components/custom/ErrorView.d.ts.map +1 -1
- package/dist/components/custom/ErrorView.js +11 -9
- package/dist/components/custom/ErrorView.js.map +1 -1
- package/dist/components/custom/ExternalLink.d.ts.map +1 -1
- package/dist/components/custom/ExternalLink.js +3 -3
- package/dist/components/custom/ExternalLink.js.map +1 -1
- package/dist/components/custom/FilterDropdown.d.ts +2 -2
- package/dist/components/custom/FilterDropdown.d.ts.map +1 -1
- package/dist/components/custom/FilterDropdown.js +41 -24
- package/dist/components/custom/FilterDropdown.js.map +1 -1
- package/dist/components/custom/Flex.d.ts +1 -1
- package/dist/components/custom/Flex.d.ts.map +1 -1
- package/dist/components/custom/Flex.js +3 -3
- package/dist/components/custom/Flex.js.map +1 -1
- package/dist/components/custom/Form.d.ts +5 -5
- package/dist/components/custom/Form.d.ts.map +1 -1
- package/dist/components/custom/Form.js +27 -18
- package/dist/components/custom/Form.js.map +1 -1
- package/dist/components/custom/FullscreenImage.d.ts.map +1 -1
- package/dist/components/custom/FullscreenImage.js +2 -2
- package/dist/components/custom/FullscreenImage.js.map +1 -1
- package/dist/components/custom/Grid.d.ts +1 -1
- package/dist/components/custom/Grid.d.ts.map +1 -1
- package/dist/components/custom/Grid.js +5 -4
- package/dist/components/custom/Grid.js.map +1 -1
- package/dist/components/custom/Icon.d.ts.map +1 -1
- package/dist/components/custom/Icon.js +1 -1
- package/dist/components/custom/Icon.js.map +1 -1
- package/dist/components/custom/IconHelp.d.ts.map +1 -1
- package/dist/components/custom/IconHelp.js +1 -1
- package/dist/components/custom/IconHelp.js.map +1 -1
- package/dist/components/custom/Input.d.ts.map +1 -1
- package/dist/components/custom/Input.js +12 -6
- package/dist/components/custom/Input.js.map +1 -1
- package/dist/components/custom/KpiDisplay.d.ts.map +1 -1
- package/dist/components/custom/KpiDisplay.js +1 -1
- package/dist/components/custom/KpiDisplay.js.map +1 -1
- package/dist/components/custom/LabelledProgress.d.ts.map +1 -1
- package/dist/components/custom/LabelledProgress.js +2 -2
- package/dist/components/custom/LabelledProgress.js.map +1 -1
- package/dist/components/custom/Markdown.d.ts.map +1 -1
- package/dist/components/custom/Markdown.js +15 -12
- package/dist/components/custom/Markdown.js.map +1 -1
- package/dist/components/custom/Modal.d.ts +4 -4
- package/dist/components/custom/Modal.d.ts.map +1 -1
- package/dist/components/custom/Modal.js +20 -14
- package/dist/components/custom/Modal.js.map +1 -1
- package/dist/components/custom/MonospaceBlock.d.ts.map +1 -1
- package/dist/components/custom/MonospaceBlock.js +5 -5
- package/dist/components/custom/MonospaceBlock.js.map +1 -1
- package/dist/components/custom/PasswordInput.d.ts +1 -1
- package/dist/components/custom/PasswordInput.d.ts.map +1 -1
- package/dist/components/custom/PasswordInput.js +4 -4
- package/dist/components/custom/PasswordInput.js.map +1 -1
- package/dist/components/custom/ProgressTicker.d.ts.map +1 -1
- package/dist/components/custom/ProgressTicker.js +1 -1
- package/dist/components/custom/ProgressTicker.js.map +1 -1
- package/dist/components/custom/RadioGroup.d.ts +48 -48
- package/dist/components/custom/RadioGroup.d.ts.map +1 -1
- package/dist/components/custom/RadioGroup.js +28 -28
- package/dist/components/custom/RadioGroup.js.map +1 -1
- package/dist/components/custom/Select.d.ts.map +1 -1
- package/dist/components/custom/Select.js +6 -2
- package/dist/components/custom/Select.js.map +1 -1
- package/dist/components/custom/SelectCards.d.ts.map +1 -1
- package/dist/components/custom/SelectCards.js +5 -5
- package/dist/components/custom/SelectCards.js.map +1 -1
- package/dist/components/custom/Slider.d.ts +48 -48
- package/dist/components/custom/Slider.d.ts.map +1 -1
- package/dist/components/custom/Slider.js +2 -2
- package/dist/components/custom/Slider.js.map +1 -1
- package/dist/components/custom/SourceCode.d.ts.map +1 -1
- package/dist/components/custom/SourceCode.js +13 -7
- package/dist/components/custom/SourceCode.js.map +1 -1
- package/dist/components/custom/StatusBar.d.ts.map +1 -1
- package/dist/components/custom/StatusBar.js +3 -3
- package/dist/components/custom/StatusBar.js.map +1 -1
- package/dist/components/custom/Stepper.d.ts.map +1 -1
- package/dist/components/custom/Stepper.js +6 -6
- package/dist/components/custom/Stepper.js.map +1 -1
- package/dist/components/custom/Switch.d.ts +1 -0
- package/dist/components/custom/Switch.d.ts.map +1 -1
- package/dist/components/custom/Switch.js +3 -3
- package/dist/components/custom/Switch.js.map +1 -1
- package/dist/components/custom/Table.d.ts +1 -1
- package/dist/components/custom/Table.d.ts.map +1 -1
- package/dist/components/custom/Table.js +14 -10
- package/dist/components/custom/Table.js.map +1 -1
- package/dist/components/custom/Text.d.ts +5 -0
- package/dist/components/custom/Text.d.ts.map +1 -1
- package/dist/components/custom/Text.js +6 -6
- package/dist/components/custom/Text.js.map +1 -1
- package/dist/components/custom/TimePicker.d.ts.map +1 -1
- package/dist/components/custom/TimePicker.js +3 -3
- package/dist/components/custom/TimePicker.js.map +1 -1
- package/dist/components/custom/Toast.d.ts +5 -5
- package/dist/components/custom/Toast.d.ts.map +1 -1
- package/dist/components/custom/Toast.js +8 -8
- package/dist/components/custom/Toast.js.map +1 -1
- package/dist/components/custom/Toggle.d.ts +5 -0
- package/dist/components/custom/Toggle.d.ts.map +1 -0
- package/dist/components/custom/Toggle.js +12 -0
- package/dist/components/custom/Toggle.js.map +1 -0
- package/dist/components/custom/Tooltip.d.ts.map +1 -1
- package/dist/components/custom/Tooltip.js +6 -6
- package/dist/components/custom/Tooltip.js.map +1 -1
- package/dist/components/custom/TurnstileWidget.d.ts.map +1 -1
- package/dist/components/custom/TurnstileWidget.js +1 -1
- package/dist/components/custom/TurnstileWidget.js.map +1 -1
- package/dist/components/custom/VideoPlayer.d.ts.map +1 -1
- package/dist/components/custom/VideoPlayer.js +32 -12
- package/dist/components/custom/VideoPlayer.js.map +1 -1
- package/dist/components/custom/devices/devices-constants.d.ts.map +1 -1
- package/dist/components/custom/devices/devices-constants.js +13 -2
- package/dist/components/custom/devices/devices-constants.js.map +1 -1
- package/dist/components/custom/devices/devices-family.d.ts +1 -1
- package/dist/components/custom/devices/devices-family.d.ts.map +1 -1
- package/dist/components/custom/devices/devices-family.js +7 -4
- package/dist/components/custom/devices/devices-family.js.map +1 -1
- package/dist/components/custom/devices/devices-list.d.ts.map +1 -1
- package/dist/components/custom/devices/devices-list.js +13 -2
- package/dist/components/custom/devices/devices-list.js.map +1 -1
- package/dist/components/custom/devices/devices.d.ts +1 -1
- package/dist/components/custom/devices/devices.d.ts.map +1 -1
- package/dist/components/custom/devices/devices.js +14 -8
- package/dist/components/custom/devices/devices.js.map +1 -1
- package/dist/components/custom/devices/index.d.ts +2 -2
- package/dist/components/custom/devices/index.d.ts.map +1 -1
- package/dist/components/custom/devices/index.js +2 -2
- package/dist/components/custom/devices/index.js.map +1 -1
- package/dist/components/custom/index.d.ts +33 -32
- package/dist/components/custom/index.d.ts.map +1 -1
- package/dist/components/custom/index.js +33 -32
- package/dist/components/custom/index.js.map +1 -1
- package/dist/components/custom/oak4/Oak4DeviceCard.d.ts.map +1 -1
- package/dist/components/custom/oak4/Oak4DeviceCard.js +3 -3
- package/dist/components/custom/oak4/Oak4DeviceCard.js.map +1 -1
- package/dist/components/shadow-panda/Accordion.d.ts +2 -2
- package/dist/components/shadow-panda/Accordion.d.ts.map +1 -1
- package/dist/components/shadow-panda/Accordion.js +3 -3
- package/dist/components/shadow-panda/Accordion.js.map +1 -1
- package/dist/components/shadow-panda/Avatar.d.ts +1 -1
- package/dist/components/shadow-panda/Avatar.d.ts.map +1 -1
- package/dist/components/shadow-panda/Avatar.js +1 -1
- package/dist/components/shadow-panda/Avatar.js.map +1 -1
- package/dist/components/shadow-panda/Calendar.d.ts +1 -1
- package/dist/components/shadow-panda/Calendar.d.ts.map +1 -1
- package/dist/components/shadow-panda/Calendar.js +2 -2
- package/dist/components/shadow-panda/Calendar.js.map +1 -1
- package/dist/components/shadow-panda/DropdownMenu.d.ts +2 -2
- package/dist/components/shadow-panda/DropdownMenu.d.ts.map +1 -1
- package/dist/components/shadow-panda/DropdownMenu.js +6 -6
- package/dist/components/shadow-panda/DropdownMenu.js.map +1 -1
- package/dist/components/shadow-panda/Form.d.ts +1 -1
- package/dist/components/shadow-panda/Form.d.ts.map +1 -1
- package/dist/components/shadow-panda/Form.js +12 -10
- package/dist/components/shadow-panda/Form.js.map +1 -1
- package/dist/components/shadow-panda/Popover.d.ts +22 -22
- package/dist/components/shadow-panda/Popover.d.ts.map +1 -1
- package/dist/components/shadow-panda/Popover.js +3 -3
- package/dist/components/shadow-panda/Popover.js.map +1 -1
- package/dist/components/shadow-panda/Progress.d.ts +1 -1
- package/dist/components/shadow-panda/Progress.d.ts.map +1 -1
- package/dist/components/shadow-panda/Progress.js +3 -3
- package/dist/components/shadow-panda/Progress.js.map +1 -1
- package/dist/components/shadow-panda/Separator.d.ts +1 -1
- package/dist/components/shadow-panda/Separator.d.ts.map +1 -1
- package/dist/components/shadow-panda/Separator.js +3 -3
- package/dist/components/shadow-panda/Separator.js.map +1 -1
- package/dist/components/shadow-panda/Skeleton.js +1 -1
- package/dist/components/shadow-panda/Skeleton.js.map +1 -1
- package/dist/components/shadow-panda/Table.d.ts.map +1 -1
- package/dist/components/shadow-panda/Table.js +8 -8
- package/dist/components/shadow-panda/Table.js.map +1 -1
- package/dist/components/shadow-panda/Tabs.d.ts +1 -1
- package/dist/components/shadow-panda/Tabs.d.ts.map +1 -1
- package/dist/components/shadow-panda/Tabs.js +1 -1
- package/dist/components/shadow-panda/Tabs.js.map +1 -1
- package/dist/components/shadow-panda/Textarea.d.ts.map +1 -1
- package/dist/components/shadow-panda/Textarea.js +2 -2
- package/dist/components/shadow-panda/Textarea.js.map +1 -1
- package/dist/components/shadow-panda/Toaster.d.ts.map +1 -1
- package/dist/components/shadow-panda/Toaster.js +3 -3
- package/dist/components/shadow-panda/Toaster.js.map +1 -1
- package/dist/components/shadow-panda/_Alert.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Alert.js +2 -2
- package/dist/components/shadow-panda/_Alert.js.map +1 -1
- package/dist/components/shadow-panda/_Badge.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Badge.js +1 -1
- package/dist/components/shadow-panda/_Badge.js.map +1 -1
- package/dist/components/shadow-panda/_Button.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Button.js +2 -2
- package/dist/components/shadow-panda/_Button.js.map +1 -1
- package/dist/components/shadow-panda/_Card.js +5 -5
- package/dist/components/shadow-panda/_Card.js.map +1 -1
- package/dist/components/shadow-panda/_Checkbox.d.ts +1 -1
- package/dist/components/shadow-panda/_Checkbox.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Checkbox.js +5 -5
- package/dist/components/shadow-panda/_Checkbox.js.map +1 -1
- package/dist/components/shadow-panda/_Command.d.ts +4 -4
- package/dist/components/shadow-panda/_Command.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Command.js +4 -4
- package/dist/components/shadow-panda/_Command.js.map +1 -1
- package/dist/components/shadow-panda/_Dialog.d.ts +2 -2
- package/dist/components/shadow-panda/_Dialog.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Dialog.js +2 -2
- package/dist/components/shadow-panda/_Dialog.js.map +1 -1
- package/dist/components/shadow-panda/_Input.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Input.js +1 -1
- package/dist/components/shadow-panda/_Input.js.map +1 -1
- package/dist/components/shadow-panda/_Label.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Label.js +1 -1
- package/dist/components/shadow-panda/_Label.js.map +1 -1
- package/dist/components/shadow-panda/_RadioGroup.d.ts +2 -2
- package/dist/components/shadow-panda/_RadioGroup.d.ts.map +1 -1
- package/dist/components/shadow-panda/_RadioGroup.js +3 -3
- package/dist/components/shadow-panda/_RadioGroup.js.map +1 -1
- package/dist/components/shadow-panda/_Select.d.ts +2 -2
- package/dist/components/shadow-panda/_Select.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Select.js +4 -4
- package/dist/components/shadow-panda/_Select.js.map +1 -1
- package/dist/components/shadow-panda/_Slider.d.ts +1 -1
- package/dist/components/shadow-panda/_Slider.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Slider.js +25 -18
- package/dist/components/shadow-panda/_Slider.js.map +1 -1
- package/dist/components/shadow-panda/_Toggle.d.ts +6 -0
- package/dist/components/shadow-panda/_Toggle.d.ts.map +1 -0
- package/dist/components/shadow-panda/_Toggle.js +6 -0
- package/dist/components/shadow-panda/_Toggle.js.map +1 -0
- package/dist/components/shadow-panda/_Tooltip.d.ts +1 -1
- package/dist/components/shadow-panda/_Tooltip.d.ts.map +1 -1
- package/dist/components/shadow-panda/_Tooltip.js +1 -1
- package/dist/components/shadow-panda/_Tooltip.js.map +1 -1
- package/dist/components/shadow-panda/index.d.ts +6 -5
- package/dist/components/shadow-panda/index.d.ts.map +1 -1
- package/dist/components/shadow-panda/index.js +6 -5
- package/dist/components/shadow-panda/index.js.map +1 -1
- package/dist/components/skeletons/Button.d.ts.map +1 -1
- package/dist/components/skeletons/Button.js +2 -2
- package/dist/components/skeletons/Button.js.map +1 -1
- package/dist/components/skeletons/Grid.d.ts +1 -1
- package/dist/components/skeletons/Grid.d.ts.map +1 -1
- package/dist/components/skeletons/Grid.js +5 -5
- package/dist/components/skeletons/Grid.js.map +1 -1
- package/dist/components/skeletons/Input.d.ts.map +1 -1
- package/dist/components/skeletons/Input.js +2 -2
- package/dist/components/skeletons/Input.js.map +1 -1
- package/dist/components/skeletons/Table.d.ts.map +1 -1
- package/dist/components/skeletons/Table.js +4 -4
- package/dist/components/skeletons/Table.js.map +1 -1
- package/dist/components/skeletons/Textarea.d.ts.map +1 -1
- package/dist/components/skeletons/Textarea.js +2 -2
- package/dist/components/skeletons/Textarea.js.map +1 -1
- package/dist/components/skeletons/index.d.ts +1 -1
- package/dist/components/skeletons/index.d.ts.map +1 -1
- package/dist/components/skeletons/index.js +1 -1
- package/dist/components/skeletons/index.js.map +1 -1
- package/dist/helpers.d.ts +1 -1
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +4 -4
- package/dist/helpers.js.map +1 -1
- package/dist/hooks/copy.d.ts.map +1 -1
- package/dist/hooks/copy.js +3 -1
- package/dist/hooks/copy.js.map +1 -1
- package/dist/hooks/dropzone.d.ts +1 -1
- package/dist/hooks/dropzone.d.ts.map +1 -1
- package/dist/hooks/dropzone.js +10 -4
- package/dist/hooks/dropzone.js.map +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/modal.d.ts.map +1 -1
- package/dist/hooks/modal.js +1 -1
- package/dist/hooks/modal.js.map +1 -1
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +9 -5
- package/dist/hooks/use-toast.js.map +1 -1
- package/dist/hooks/use-translations.d.ts +1 -1
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/hooks/use-translations.js +2 -2
- package/dist/hooks/use-translations.js.map +1 -1
- package/dist/hooks/use-window-width.js.map +1 -1
- package/dist/icons/index.d.ts +2 -2
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +2 -2
- package/dist/icons/index.js.map +1 -1
- package/dist/icons/react-icons.d.ts +11 -10
- package/dist/icons/react-icons.d.ts.map +1 -1
- package/dist/icons/react-icons.js +11 -10
- package/dist/icons/react-icons.js.map +1 -1
- package/dist/icons/style-provider.d.ts.map +1 -1
- package/dist/icons/style-provider.js +2 -2
- package/dist/icons/style-provider.js.map +1 -1
- package/dist/icons/svg/AccessDenied.d.ts.map +1 -1
- package/dist/icons/svg/AccessDenied.js.map +1 -1
- package/dist/icons/svg/Empty.d.ts.map +1 -1
- package/dist/icons/svg/Empty.js.map +1 -1
- package/dist/icons/svg/Error.d.ts.map +1 -1
- package/dist/icons/svg/Error.js.map +1 -1
- package/dist/icons/svg/Logo.d.ts.map +1 -1
- package/dist/icons/svg/Logo.js.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +3 -2
- package/dist/panda.css +4 -0
- package/dist/panda.d.ts.map +1 -1
- package/dist/panda.js +98 -90
- package/dist/panda.js.map +1 -1
- package/dist/recipes/colors.d.ts.map +1 -1
- package/dist/recipes/colors.js +1 -8
- package/dist/recipes/colors.js.map +1 -1
- package/dist/recipes/hover.d.ts.map +1 -1
- package/dist/recipes/hover.js.map +1 -1
- package/dist/translations/en/common/common.js +1 -1
- package/dist/translations/en/common/common.js.map +1 -1
- package/dist/translations/en/index.d.ts.map +1 -1
- package/dist/translations/en/index.js +1 -1
- package/dist/translations/en/index.js.map +1 -1
- package/dist/translations/formatters.d.ts +1 -1
- package/dist/translations/formatters.d.ts.map +1 -1
- package/dist/translations/formatters.js.map +1 -1
- package/package.json +89 -89
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAiB,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,MAAM,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot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;;;;;;;;;;;;;;;;;;;;;;;;;;WAPjB,MAAM,EAAE;;;gCAGY,MAAM,GAAG,SAAS,KAAK,MAAM;wBACrC,MAAM,EAAE,KAAK,IAAI;yCAgBpC,CAAC"}
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import { _DoubleSlider, _Slider } from '../shadow-panda/_Slider.js';
|
|
4
4
|
export const Slider = React.forwardRef((props, ref) => {
|
|
5
5
|
const { value, onChange, ...rest } = props;
|
|
6
|
-
return _jsx(_Slider, { ref: ref, onValueChange: values => onChange?.(values[0]), value: [value], ...rest });
|
|
6
|
+
return (_jsx(_Slider, { ref: ref, onValueChange: (values) => onChange?.(values[0]), value: [value], ...rest }));
|
|
7
7
|
});
|
|
8
8
|
export const DoubleSlider = React.forwardRef((props, ref) => {
|
|
9
9
|
const { value, onChange, ...rest } = props;
|
|
10
|
-
return _jsx(_DoubleSlider, { ref: ref, onValueChange: values => onChange?.(values), value: value, ...rest });
|
|
10
|
+
return (_jsx(_DoubleSlider, { ref: ref, onValueChange: (values) => onChange?.(values), value: value, ...rest }));
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/custom/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAUpE,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/custom/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAUpE,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACrC,CAAC,KAAkB,EAAE,GAA+B,EAAE,EAAE;IACvD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE3C,OAAO,CACN,KAAC,OAAO,IACP,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAChD,KAAK,EAAE,CAAC,KAAK,CAAC,KACV,IAAI,GACP,CACF,CAAC;AACH,CAAC,CACD,CAAC;AAaF,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAC3C,CAAC,KAAwB,EAAE,GAA+B,EAAE,EAAE;IAC7D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAE3C,OAAO,CACN,KAAC,aAAa,IACb,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,EAC7C,KAAK,EAAE,KAAK,KACR,IAAI,GACP,CACF,CAAC;AACH,CAAC,CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../../src/components/custom/SourceCode.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SourceCode.d.ts","sourceRoot":"","sources":["../../../src/components/custom/SourceCode.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AASvE,KAAK,eAAe,GAAG;IACtB,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,CAAC;IAC7C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,UAAU;YAAW,eAAe,GAAG,WAAW;;CAkEvD,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { darcula } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
3
|
-
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
4
2
|
import React from 'react';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { CopyIcon } from '../../icons/react-icons.js';
|
|
3
|
+
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';
|
|
4
|
+
import { darcula } from 'react-syntax-highlighter/dist/esm/styles/prism';
|
|
8
5
|
import { useCopyWithToast } from '../../hooks/copy.js';
|
|
6
|
+
import { CopyIcon } from '../../icons/react-icons.js';
|
|
7
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
8
|
+
import { token } from '../../styled-system/tokens/index.mjs';
|
|
9
9
|
import { Button } from './Button.js';
|
|
10
10
|
const SourceCode = (props) => {
|
|
11
|
-
const { language, code, minHeightPx, wrapLines, fillWidth, rows, entity = 'Code', canCopy = true, onCopy } = props;
|
|
11
|
+
const { language, code, minHeightPx, wrapLines, fillWidth, rows, entity = 'Code', canCopy = true, onCopy, } = props;
|
|
12
12
|
const copy = useCopyWithToast();
|
|
13
13
|
const defaultOnCopy = React.useCallback(() => code && copy({ text: code, entity }), [copy, code, entity]);
|
|
14
14
|
if (!code) {
|
|
@@ -22,7 +22,13 @@ const SourceCode = (props) => {
|
|
|
22
22
|
maxWidth: '100%',
|
|
23
23
|
maxHeight: rows ? `${20 + rows * 25}px` : undefined,
|
|
24
24
|
borderRadius: '8px',
|
|
25
|
-
}, showLineNumbers: true, lineNumberStyle: {
|
|
25
|
+
}, showLineNumbers: true, lineNumberStyle: {
|
|
26
|
+
display: 'inline-block',
|
|
27
|
+
width: token('sizes.sourcecode.width'),
|
|
28
|
+
textAlign: 'start',
|
|
29
|
+
}, wrapLines: wrapLines, lineProps: wrapLines
|
|
30
|
+
? { style: { wordBreak: 'break-all', whiteSpace: 'pre-wrap' } }
|
|
31
|
+
: undefined, children: code })] }));
|
|
26
32
|
};
|
|
27
33
|
SourceCode.displayName = 'SourceCode';
|
|
28
34
|
export { SourceCode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../../src/components/custom/SourceCode.tsx"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../../src/components/custom/SourceCode.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,gDAAgD,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAcrC,MAAM,UAAU,GAAG,CAAC,KAAsB,EAAe,EAAE;IAC1D,MAAM,EACL,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,IAAI,EACJ,MAAM,GAAG,MAAM,EACf,OAAO,GAAG,IAAI,EACd,MAAM,GACN,GAAG,KAAK,CAAC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AE,KAAK,CAAC,wBAAwB,CAAC;oBACtC,SAAS,EAAE,OAAO;iBAClB,EACD,SAAS,EAAE,SAAS,EACpB,SAAS,EACR,SAAS;oBACR,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE;oBAC/D,CAAC,CAAC,SAAS,YAGZ,IAAI,GACc,IACf,CACN,CAAC;AACH,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/custom/StatusBar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"StatusBar.d.ts","sourceRoot":"","sources":["../../../src/components/custom/StatusBar.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C,KAAK,cAAc,GAAG,WAAW,GAAG;IACnC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,cAAc,4CAc9C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { NormalText, SubLabel } from './Text.js';
|
|
3
|
-
import { Flex } from './Flex.js';
|
|
4
|
-
import { Circle } from './Circle.js';
|
|
5
2
|
import { Card } from './Card.js';
|
|
3
|
+
import { Circle } from './Circle.js';
|
|
4
|
+
import { Flex } from './Flex.js';
|
|
5
|
+
import { NormalText, SubLabel } from './Text.js';
|
|
6
6
|
export const StatusBar = (props) => {
|
|
7
7
|
const { label, sublabel, ...circleProps } = props;
|
|
8
8
|
return (_jsx(Card, { fullWidth: true, children: _jsxs(Flex, { align: "center", gap: "sm", children: [_jsx(Circle, { ...circleProps }), _jsxs(Flex, { direction: "column", children: [_jsx(NormalText, { text: label, weight: "medium" }), sublabel && _jsx(SubLabel, { text: sublabel })] })] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusBar.js","sourceRoot":"","sources":["../../../src/components/custom/StatusBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"StatusBar.js","sourceRoot":"","sources":["../../../src/components/custom/StatusBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAOjD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAClD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAElD,OAAO,CACN,KAAC,IAAI,IAAC,SAAS,kBACd,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,aAC5B,KAAC,MAAM,OAAK,WAAW,GAAI,EAC3B,MAAC,IAAI,IAAC,SAAS,EAAC,QAAQ,aACvB,KAAC,UAAU,IAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAC,QAAQ,GAAG,EAC1C,QAAQ,IAAI,KAAC,QAAQ,IAAC,IAAI,EAAE,QAAQ,GAAI,IACnC,IACD,GACD,CACP,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAQ3C,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,IAAI,UACT,MAAM,iBAAiB,CAAC,SAAS,CAAC,KACvC,MAAM,GAAG,QAwEX,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IAC1B,WAAW,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,SAAS,oCACb;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,6CAQ3C,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,MAAM,iBAAiB,CAAC,YAAY,CAAC,4CA4BnE,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { Separator } from '../shadow-panda/Separator.js';
|
|
5
4
|
import { CheckIcon } from '../../icons/react-icons.js';
|
|
6
|
-
import {
|
|
7
|
-
import { Flex } from './Flex.js';
|
|
5
|
+
import { Separator } from '../shadow-panda/Separator.js';
|
|
8
6
|
import { Circle } from './Circle.js';
|
|
7
|
+
import { Flex } from './Flex.js';
|
|
8
|
+
import { NormalText } from './Text.js';
|
|
9
9
|
const StepperOrientationContext = React.createContext('vertical');
|
|
10
10
|
export const Step = (props) => {
|
|
11
|
-
const { label, title, done = false, active = false, visible = true, children, isLast, ...flexProps } = props;
|
|
11
|
+
const { label, title, done = false, active = false, visible = true, children, isLast, onClick, ...flexProps } = props;
|
|
12
12
|
const orientation = React.useContext(StepperOrientationContext);
|
|
13
13
|
if (!visible) {
|
|
14
14
|
return _jsx(_Fragment, {});
|
|
15
15
|
}
|
|
16
16
|
if (orientation === 'horizontal') {
|
|
17
|
-
return (_jsxs(_Fragment, { children: [_jsx(Circle, { dot: !isLast && !done, icon: isLast || done ? CheckIcon : null, iconProps: isLast || done ? { size: 'sm' } : null, variant: active ? 'active' : done ? 'success' : 'gray' }), !isLast && (_jsxs(_Fragment, { children: [typeof title === 'string' ? (_jsx(NormalText, { text: title, color: active || done ? 'normal' : 'light' })) : (title), _jsx(Separator, { orientation: orientation, flexShrink: 1 })] }))] }));
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsx(Circle, { dot: !isLast && !done, icon: isLast || done ? CheckIcon : null, iconProps: isLast || done ? { size: 'sm' } : null, variant: active ? 'active' : done ? 'success' : 'gray', cursor: props.cursor, onClick: onClick }), !isLast && (_jsxs(_Fragment, { children: [typeof title === 'string' ? (_jsx(NormalText, { text: title, color: active || done ? 'normal' : 'light', cursor: props.cursor, onClick: onClick })) : (title), _jsx(Separator, { orientation: orientation, flexShrink: 1 })] }))] }));
|
|
18
18
|
}
|
|
19
|
-
return (_jsxs(Flex, { gap: "sm", children: [_jsxs(Flex, { direction: "column", align: "center", height: "full", gap: "xs", children: [_jsx(Circle, { label: label, variant: "gray" }), _jsx(Separator, { orientation: "vertical", flexShrink: 1, height: "full" })] }), _jsxs(Flex, { direction: "column", align: "start", marginTop: "xs", gap: "xs", ...flexProps, children: [_jsx(NormalText, { text: title }), children] })] }, `step-${label}`));
|
|
19
|
+
return (_jsxs(Flex, { gap: "sm", onClick: onClick, cursor: props.cursor, children: [_jsxs(Flex, { direction: "column", align: "center", height: "full", gap: "xs", children: [_jsx(Circle, { label: label, variant: "gray" }), _jsx(Separator, { orientation: "vertical", flexShrink: 1, height: "full" })] }), _jsxs(Flex, { direction: "column", align: "start", marginTop: "xs", gap: "xs", ...flexProps, children: [_jsx(NormalText, { text: title }), children] })] }, `step-${label}`));
|
|
20
20
|
};
|
|
21
21
|
export const FinalStep = React.memo((props) => (_jsx(Circle, { dot: props.dot, icon: props.dot ? null : CheckIcon, iconProps: props.dot ? null : { size: 'sm' }, variant: props.active ? 'active' : 'gray' })));
|
|
22
22
|
export const Stepper = (props) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Stepper.js","sourceRoot":"","sources":["../../../src/components/custom/Stepper.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,yBAAyB,GAAG,KAAK,CAAC,aAAa,CAEnD,UAAU,CAAC,CAAC;AAWd,MAAM,CAAC,MAAM,IAAI,GAAG,CACnB,KAAyC,EACrB,EAAE;IACtB,MAAM,EACL,KAAK,EACL,KAAK,EACL,IAAI,GAAG,KAAK,EACZ,MAAM,GAAG,KAAK,EACd,OAAO,GAAG,IAAI,EACd,QAAQ,EACR,MAAM,E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,EACpC,CAAC,QAAQ,CAAC,CACV,CAAC;IAEF,OAAO,CACN,KAAC,yBAAyB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW,YACpD,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,CAC/B,KAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAC,eAAe,YAChE,QAAQ,GACH,CACP,CAAC,CAAC,CAAC,CACH,KAAC,IAAI,IAAC,GAAG,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,YAC/B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC9C,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;oBACjC,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE;wBAChC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;wBACxB,MAAM,EAAE,UAAU,KAAK,KAAK,GAAG,CAAC;qBACzB,CAAC,CAAC;gBACX,CAAC;YACF,CAAC,CAAC,GACI,CACP,GACmC,CACrC,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ export type SwitchProps = Omit<FlexProps, 'onChange' | 'value'> & Customizable<{
|
|
|
7
7
|
enabledLabel?: string;
|
|
8
8
|
disabledLabel?: string;
|
|
9
9
|
onChange?: (enabled: boolean) => void;
|
|
10
|
+
fullWidth?: boolean;
|
|
10
11
|
}>;
|
|
11
12
|
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
13
|
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,GAC9D,YAAY,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEJ,eAAO,MAAM,MAAM,iGAmClB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { Flex } from './Flex.js';
|
|
4
3
|
import { Button } from './Button.js';
|
|
4
|
+
import { Flex } from './Flex.js';
|
|
5
5
|
export const Switch = React.forwardRef((props, ref) => {
|
|
6
|
-
const { value: enabled = false, disabled = false, onChange, enabledLabel = 'Enabled', disabledLabel = 'Disable', ...flexProps } = props;
|
|
7
|
-
return (_jsxs(Flex, { ref: ref, ...flexProps, children: [_jsx(Button, { label: enabledLabel, variant: enabled ? 'filled' : 'outline', colorVariant: enabled ? 'active' : 'white', roundedRight: 0, onClick: () => onChange?.(true), disabled: disabled }), _jsx(Button, { label: disabledLabel, variant: enabled ? 'outline' : 'filled', colorVariant: enabled ? 'white' : 'active', roundedLeft: 0, onClick: () => onChange?.(false), disabled: disabled })] }));
|
|
6
|
+
const { value: enabled = false, disabled = false, onChange, enabledLabel = 'Enabled', disabledLabel = 'Disable', fullWidth = false, ...flexProps } = props;
|
|
7
|
+
return (_jsxs(Flex, { ref: ref, ...flexProps, children: [_jsx(Button, { label: enabledLabel, variant: enabled ? 'filled' : 'outline', colorVariant: enabled ? 'active' : 'white', roundedRight: 0, onClick: () => onChange?.(true), disabled: disabled, width: fullWidth ? 'full' : undefined }), _jsx(Button, { label: disabledLabel, variant: enabled ? 'outline' : 'filled', colorVariant: enabled ? 'white' : 'active', roundedLeft: 0, onClick: () => onChange?.(false), disabled: disabled, width: fullWidth ? 'full' : undefined })] }));
|
|
8
8
|
});
|
|
9
9
|
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/components/custom/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../../../src/components/custom/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAYjC,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CACrC,CAAC,KAAkB,EAAE,GAA8B,EAAE,EAAE;IACtD,MAAM,EACL,KAAK,EAAE,OAAO,GAAG,KAAK,EACtB,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,YAAY,GAAG,SAAS,EACxB,aAAa,GAAG,SAAS,EACzB,SAAS,GAAG,KAAK,EACjB,GAAG,SAAS,EACZ,GAAG,KAAK,CAAC;IAEV,OAAO,CACN,MAAC,IAAI,IAAC,GAAG,EAAE,GAAG,KAAM,SAAS,aAC5B,KAAC,MAAM,IACN,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EACvC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAC1C,YAAY,EAAE,CAAC,EACf,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,EAC/B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,GACpC,EACF,KAAC,MAAM,IACN,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACvC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAC1C,WAAW,EAAE,CAAC,EACd,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAChC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,GACpC,IACI,CACP,CAAC;AACH,CAAC,CACD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { _Table,
|
|
2
|
+
import { _Table, _TableHead, _TableHeader, _TableRow } from '../shadow-panda/Table.js';
|
|
3
3
|
export type TableProps = React.ComponentProps<typeof _Table> & {
|
|
4
4
|
empty?: boolean;
|
|
5
5
|
emptyPrefix?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EACN,MAAM,EACN,UAAU,EACV,YAAY,EACZ,SAAS,EACT,MAAM,0BAA0B,CAAC;AAMlC,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC9D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,UAAU,mDAuCtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,eAAO,MAAM,QAAQ,UAAW,aAAa,4CAM5C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,UAAW,gBAAgB,4CAMlD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,GAAG;IACtE,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,cAAc,4CA4D9C,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Flex } from './Flex.js';
|
|
6
|
-
import { EmptyView } from './EmptyView.js';
|
|
7
|
-
import { Card } from './Card.js';
|
|
3
|
+
import { ArrowDownIcon, ArrowUpIcon, SortIcon, } from '../../icons/react-icons.js';
|
|
4
|
+
import { _Table, _TableHead, _TableHeader, _TableRow, } from '../shadow-panda/Table.js';
|
|
8
5
|
import { Button } from './Button.js';
|
|
6
|
+
import { Card } from './Card.js';
|
|
7
|
+
import { EmptyView } from './EmptyView.js';
|
|
8
|
+
import { Flex } from './Flex.js';
|
|
9
9
|
export const Table = (props) => {
|
|
10
|
-
const { empty, emptyMessage, entity, emptyPrefix, emptySuffix,
|
|
10
|
+
const { empty, emptyMessage, entity, emptyPrefix, emptySuffix, withBorder = true, ...rest } = props;
|
|
11
11
|
const TableEmptyView = React.useMemo(() => {
|
|
12
12
|
if (emptyMessage) {
|
|
13
13
|
return _jsx(EmptyView, { marginY: "md", title: emptyMessage });
|
|
14
14
|
}
|
|
15
15
|
if (entity) {
|
|
16
|
-
return _jsx(EmptyView, { marginY: "md", title: `${emptyPrefix ?? 'You have no'} ${entity} ${emptySuffix ?? 'yet.'}` });
|
|
16
|
+
return (_jsx(EmptyView, { marginY: "md", title: `${emptyPrefix ?? 'You have no'} ${entity} ${emptySuffix ?? 'yet.'}` }));
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}, [emptyMessage, entity, emptyPrefix, emptySuffix]);
|
|
20
|
-
const table = empty ? TableEmptyView : _jsx(_Table, { ...rest, children: props.children });
|
|
20
|
+
const table = empty ? (TableEmptyView) : (_jsx(_Table, { ...rest, children: props.children }));
|
|
21
21
|
return !withBorder ? (table) : (_jsx(Card, { padding: 0, fullWidth: true, children: table }));
|
|
22
22
|
};
|
|
23
23
|
export const TableRow = (props) => {
|
|
@@ -51,11 +51,15 @@ export const TableHead = (props) => {
|
|
|
51
51
|
newSortingOrder = 'asc';
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
setSortingOrder(_current => {
|
|
54
|
+
setSortingOrder((_current) => {
|
|
55
55
|
onSort?.({ sortBy, order: newSortingOrder });
|
|
56
56
|
return newSortingOrder;
|
|
57
57
|
});
|
|
58
58
|
}, [onSort, sortBy, sortingOrder]);
|
|
59
|
-
return (_jsx(_TableHead, { ...rest, children: sortBy && onSort ? (_jsxs(Flex, { align: "center", gap: "xs", children: [props.children, _jsx(Button, { variant: "ghost", colorVariant: "white", icon: sortingOrder === 'asc'
|
|
59
|
+
return (_jsx(_TableHead, { ...rest, children: sortBy && onSort ? (_jsxs(Flex, { align: "center", gap: "xs", children: [props.children, _jsx(Button, { variant: "ghost", colorVariant: "white", icon: sortingOrder === 'asc'
|
|
60
|
+
? ArrowUpIcon
|
|
61
|
+
: sortingOrder === 'desc'
|
|
62
|
+
? ArrowDownIcon
|
|
63
|
+
: SortIcon, iconPosition: "end", onClick: handleSort, color: "muted.foreground" })] })) : (props.children) }));
|
|
60
64
|
};
|
|
61
65
|
//# sourceMappingURL=Table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/custom/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/custom/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,aAAa,EACb,WAAW,EACX,QAAQ,G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AK;gBACT,eAAe,GAAG,MAAM,CAAC;gBACzB,MAAM;YACP,KAAK,MAAM;gBACV,eAAe,GAAG,IAAI,CAAC;gBACvB,MAAM;YACP,KAAK,IAAI;gBACR,eAAe,GAAG,KAAK,CAAC;gBACxB,MAAM;QACR,CAAC;QACD,eAAe,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC5B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC,CAAC;YAC7C,OAAO,eAAe,CAAC;QACxB,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IAEnC,OAAO,CACN,KAAC,UAAU,OAAK,IAAI,YAClB,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,CACnB,MAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAC,IAAI,aAC3B,KAAK,CAAC,QAAQ,EACf,KAAC,MAAM,IACN,OAAO,EAAC,OAAO,EACf,YAAY,EAAC,OAAO,EACpB,IAAI,EACH,YAAY,KAAK,KAAK;wBACrB,CAAC,CAAC,WAAW;wBACb,CAAC,CAAC,YAAY,KAAK,MAAM;4BACxB,CAAC,CAAC,aAAa;4BACf,CAAC,CAAC,QAAQ,EAEb,YAAY,EAAC,KAAK,EAClB,OAAO,EAAE,UAAU,EACnB,KAAK,EAAC,kBAAkB,GACvB,IACI,CACP,CAAC,CAAC,CAAC,CACH,KAAK,CAAC,QAAQ,CACd,GACW,CACb,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Customizable, PropsFromCVA } from '../../helpers.js';
|
|
3
|
+
import { ConditionalValue } from '../../styled-system/types/conditions.mjs';
|
|
4
|
+
import { AnyString } from '../../styled-system/types/style-props.mjs';
|
|
5
|
+
import { CssProperties } from '../../styled-system/types/system-types.mjs';
|
|
3
6
|
declare const styledText: import("../../styled-system/types/recipe.mjs").RecipeRuntimeFn<{
|
|
4
7
|
break: {
|
|
5
8
|
character: {
|
|
@@ -132,6 +135,8 @@ declare const styledText: import("../../styled-system/types/recipe.mjs").RecipeR
|
|
|
132
135
|
}>;
|
|
133
136
|
export type StyledTextProps = PropsFromCVA<typeof styledText> & Customizable<{
|
|
134
137
|
text: React.ReactNode;
|
|
138
|
+
cursor?: ConditionalValue<CssProperties['cursor'] | AnyString>;
|
|
139
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
135
140
|
}>;
|
|
136
141
|
export declare const StyledText: (props: StyledTextProps) => React.JSX.Element;
|
|
137
142
|
export declare const PageTitle: (props: StyledTextProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAInE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEd,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,OAAO,UAAU,CAAC,GAC5D,YAAY,CAAC;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,CAAC;IAC/D,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;CACnD,CAAC,CAAC;AAEJ,eAAO,MAAM,UAAU,UAAW,eAAe,KAAG,MAAM,GAAG,QAW5D,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,eAAe,KAAG,MAAM,GAAG,QAE3D,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,eAAe,KAAG,MAAM,GAAG,QAExD,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,eAAe,KAAG,MAAM,GAAG,QAE3D,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,eAAe,KAAG,MAAM,GAAG,QAE5D,CAAC;AAEF,eAAO,MAAM,KAAK,UAAW,eAAe,KAAG,MAAM,GAAG,QAEvD,CAAC;AAEF,eAAO,MAAM,QAAQ,UAAW,eAAe,KAAG,MAAM,GAAG,QAE1D,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,eAAe,KAAG,MAAM,GAAG,QAE/D,CAAC;AAEF,eAAO,MAAM,UAAU,2BAGpB,MAAM,iBAAiB,CACzB,MAAM,kBAAkB,CAAC,cAAc,CAAC,CACxC,KAAG,MAAM,GAAG,QAaZ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
3
|
-
import { cva } from '../../styled-system/css/cva.mjs';
|
|
4
2
|
import { clsx } from '../../helpers.js';
|
|
3
|
+
import { cva } from '../../styled-system/css/cva.mjs';
|
|
4
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
5
5
|
const styledText = cva({
|
|
6
6
|
variants: {
|
|
7
7
|
break: {
|
|
@@ -57,7 +57,7 @@ const styledText = cva({
|
|
|
57
57
|
preserve: { whiteSpace: 'pre-wrap' },
|
|
58
58
|
},
|
|
59
59
|
pointerEvents: {
|
|
60
|
-
|
|
60
|
+
none: {
|
|
61
61
|
pointerEvents: 'none',
|
|
62
62
|
},
|
|
63
63
|
},
|
|
@@ -69,12 +69,12 @@ const styledText = cva({
|
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
export const StyledText = (props) => {
|
|
72
|
-
const { className, text, ...options } = props;
|
|
73
|
-
return _jsx("span", { className: clsx(styledText(options), className), children: text });
|
|
72
|
+
const { className, text, onClick, cursor, ...options } = props;
|
|
73
|
+
return (_jsx("span", { className: clsx(styledText(options), className), onClick: onClick, style: { cursor: cursor ?? 'default' }, children: text }));
|
|
74
74
|
};
|
|
75
75
|
export const PageTitle = (props) => (_jsx(StyledText, { size: "pageTitle", color: "normal", weight: "extraBold", ...props }));
|
|
76
76
|
export const Header = (props) => (_jsx(StyledText, { size: "header", color: "normal", weight: "bold", ...props }));
|
|
77
|
-
export const SubHeader = (props) => _jsx(Header, { size: "subHeader", ...props });
|
|
77
|
+
export const SubHeader = (props) => (_jsx(Header, { size: "subHeader", ...props }));
|
|
78
78
|
export const NormalText = (props) => (_jsx(StyledText, { size: "primary", color: "normal", weight: "primary", ...props }));
|
|
79
79
|
export const Label = (props) => (_jsx(StyledText, { size: "label", color: "label", weight: "primary", ...props }));
|
|
80
80
|
export const SubLabel = (props) => (_jsx(StyledText, { size: "small", color: "label", weight: "medium", ...props }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/components/custom/Text.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../src/components/custom/Text.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,MA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,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,EAAC,SAAS,KAAK,KAAK,GAAI,CACrE,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,EAC1B,QAAQ,EACR,GAAG,KAAK,EAGR,EAAqB,EAAE;IACvB,OAAO,CACN,KAAC,MAAM,CAAC,GAAG,IACV,UAAU,EAAC,QAAQ,EACnB,KAAK,EAAC,MAAM,EACZ,QAAQ,EAAC,QAAQ,EACjB,YAAY,EAAC,UAAU,EACvB,aAAa,EAAC,MAAM,KAChB,KAAK,YAER,QAAQ,GACG,CACb,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/custom/TimePicker.tsx"],"names":[],"mappings":";AAMA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../src/components/custom/TimePicker.tsx"],"names":[],"mappings":";AAMA,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,UAAU;YAAW,gBAAgB,MAAM,CAAC;;CAoBxD,CAAC;AAGF,eAAO,MAAM,eAAe;YACpB,gBAAgB,MAAM,CAAC,GAC5B,WAAW;;CAuCb,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { css } from '../../styled-system/css/css.mjs';
|
|
4
|
-
import { Label } from './Text.js';
|
|
5
4
|
import { Flex } from './Flex.js';
|
|
5
|
+
import { Label } from './Text.js';
|
|
6
6
|
export const TimePicker = (props) => {
|
|
7
7
|
const { onChange, ...rest } = props;
|
|
8
8
|
const handleOnChange = React.useCallback((event) => {
|
|
@@ -14,7 +14,7 @@ export const TimePicker = (props) => {
|
|
|
14
14
|
rounded: 'common',
|
|
15
15
|
cursor: 'text',
|
|
16
16
|
});
|
|
17
|
-
return _jsx("input", { type: "time", onChange: handleOnChange, ...rest, className: styles });
|
|
17
|
+
return (_jsx("input", { type: "time", onChange: handleOnChange, ...rest, className: styles }));
|
|
18
18
|
};
|
|
19
19
|
TimePicker.displayName = 'TimePicker';
|
|
20
20
|
export const TimeRangePicker = (props) => {
|
|
@@ -31,7 +31,7 @@ export const TimeRangePicker = (props) => {
|
|
|
31
31
|
onChange(`${from}-${newValue}`);
|
|
32
32
|
}
|
|
33
33
|
}, [from, onChange, to]);
|
|
34
|
-
return (_jsxs(Flex, { gap: "xs", align: "center", children: [_jsx(TimePicker, { value: from, onChange: newValue => handleOnChange('from', newValue), ...rest }), _jsx(Label, { text: "\u2014" }), _jsx(TimePicker, { value: to, onChange: newValue => handleOnChange('to', newValue), ...rest })] }));
|
|
34
|
+
return (_jsxs(Flex, { gap: "xs", align: "center", children: [_jsx(TimePicker, { value: from, onChange: (newValue) => handleOnChange('from', newValue), ...rest }), _jsx(Label, { text: "\u2014" }), _jsx(TimePicker, { value: to, onChange: (newValue) => handleOnChange('to', newValue), ...rest })] }));
|
|
35
35
|
};
|
|
36
36
|
TimeRangePicker.displayName = 'TimeRangePicker';
|
|
37
37
|
//# sourceMappingURL=TimePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimePicker.js","sourceRoot":"","sources":["../../../src/components/custom/TimePicker.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"TimePicker.js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-panda/_Toast.js';
|
|
5
|
-
import { toast } from '../../styled-system/recipes/toast.mjs';
|
|
6
|
-
import type { ColorStylesProps } from '../../recipes/colors.js';
|
|
2
|
+
import * as React from 'react';
|
|
7
3
|
import type { Nested, Provider } from '../../helpers.js';
|
|
4
|
+
import type { ColorStylesProps } from '../../recipes/colors.js';
|
|
5
|
+
import { toast } from '../../styled-system/recipes/toast.mjs';
|
|
6
|
+
import type { _ToastClose } from '../shadow-panda/_Toast.js';
|
|
7
|
+
import { __Toast, _ToastAction, _ToastDescription, _ToastTitle } from '../shadow-panda/_Toast.js';
|
|
8
8
|
declare const _Toast: Provider<typeof __Toast, typeof toast>;
|
|
9
9
|
export type UseToastProps = React.ComponentPropsWithoutRef<typeof _Toast> & ColorStylesProps;
|
|
10
10
|
export declare const Toast: ({ variant, colorVariant, ...props }: UseToastProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toast.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAKhE,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAE9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACN,OAAO,EACP,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,MAAM,2BAA2B,CAAC;AAInC,QAAA,MAAM,MAAM,EAAE,QAAQ,CAAC,OAAO,OAAO,EAAE,OAAO,KAAK,CAIlD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,GACxE,gBAAgB,CAAC;AAElB,eAAO,MAAM,KAAK,wCAIf,aAAa,4CAIf,CAAC;AAGF,eAAO,MAAM,aAAa,6CAA0B,CAAC;AACrD,eAAO,MAAM,aAAa,6PAAiD,CAAC;AAC5E,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,OAAO,YAAY,CAGnD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAC3D,OAAO,WAAW,CAClB,CAAC;AAGF,eAAO,MAAM,UAAU,wBAAmC,eAAe,4CAQxE,CAAC;AACF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,OAAO,WAAW,CAGjD,CAAC;AACF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,OAAO,iBAAiB,CAG7D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
4
3
|
import { createStyleContext } from '@luxonis-public/shadow-panda-style-context';
|
|
5
|
-
import
|
|
4
|
+
import * as ToastPrimitive from '@radix-ui/react-toast';
|
|
5
|
+
import { CloseIcon } from '../../icons/react-icons.js';
|
|
6
|
+
import { colorStyles } from '../../recipes/colors.js';
|
|
7
|
+
import { css } from '../../styled-system/css/css.mjs';
|
|
8
|
+
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
9
|
+
import { icon } from '../../styled-system/recipes/icon.mjs';
|
|
6
10
|
import { toast } from '../../styled-system/recipes/toast.mjs';
|
|
7
11
|
import { toastViewport } from '../../styled-system/recipes/toast-viewport.mjs';
|
|
8
|
-
import {
|
|
9
|
-
import { styled } from '../../styled-system/jsx/factory.mjs';
|
|
10
|
-
import { css } from '../../styled-system/css/css.mjs';
|
|
11
|
-
import { colorStyles } from '../../recipes/colors.js';
|
|
12
|
-
import { CloseIcon } from '../../icons/react-icons.js';
|
|
12
|
+
import { __Toast, _ToastAction, _ToastDescription, _ToastTitle, } from '../shadow-panda/_Toast.js';
|
|
13
13
|
const { withProvider, withContext } = createStyleContext(toast);
|
|
14
14
|
const _Toast = withProvider(__Toast, 'root', { className: 'group' });
|
|
15
15
|
export const Toast = ({ variant = 'filled', colorVariant = 'white', ...props }) => {
|
|
16
|
-
return _jsx(_Toast, { className: colorStyles({ colorVariant, variant }), ...props });
|
|
16
|
+
return (_jsx(_Toast, { className: colorStyles({ colorVariant, variant }), ...props }));
|
|
17
17
|
};
|
|
18
18
|
// TODO: move to shadow-panda and keep only custom styles here
|
|
19
19
|
export const ToastProvider = ToastPrimitive.Provider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../src/components/custom/Toast.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;
|
|
1
|
+
{"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../src/components/custom/Toast.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAGxD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,uCAAuC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,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OAAO,EAC5C,KAAK,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,GACrC,GACW,CACd,CAAC;AACF,MAAM,CAAC,MAAM,UAAU,GAA+B,WAAW,CAChE,WAAW,EACX,OAAO,CACP,CAAC;AACF,MAAM,CAAC,MAAM,gBAAgB,GAAqC,WAAW,CAC5E,iBAAiB,EACjB,aAAa,CACb,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { _ToggleProps } from '../shadow-panda/_Toggle.js';
|
|
2
|
+
import { ButtonProps } from './Button.js';
|
|
3
|
+
export type ToggleProps = Omit<_ToggleProps, 'variant' | 'label'> & ButtonProps;
|
|
4
|
+
export declare const Toggle: (props: ToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Toggle.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAW,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,WAAW,CAAC;AAEhF,eAAO,MAAM,MAAM,UAAW,WAAW,4CAsBxC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { clsx } from '../../helpers.js';
|
|
3
|
+
import { colorStyles } from '../../recipes/colors.js';
|
|
4
|
+
import { hoverStyles } from '../../recipes/hover.js';
|
|
5
|
+
import { _Toggle } from '../shadow-panda/_Toggle.js';
|
|
6
|
+
import { NormalText } from './Text.js';
|
|
7
|
+
export const Toggle = (props) => {
|
|
8
|
+
const { label, variant, className, colorVariant, hoverStyle, ...rest } = props;
|
|
9
|
+
const ToggleComponent = () => (_jsx(_Toggle, { className: clsx(colorStyles({ variant, colorVariant }), hoverStyles({ variant, colorVariant, hoverStyle }), className), ...rest, children: typeof label === 'string' ? (_jsx(NormalText, { text: label, cursor: "pointer" })) : (label) }));
|
|
10
|
+
return _jsx(ToggleComponent, {});
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Toggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../src/components/custom/Toggle.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAgB,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAIvC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,KAAkB,EAAE,EAAE;IAC5C,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GACrE,KAAK,CAAC;IAEP,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,CAC7B,KAAC,OAAO,IACP,SAAS,EAAE,IAAI,CACd,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,EACtC,WAAW,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC,EAClD,SAAS,CACT,KACG,IAAI,YAEP,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC5B,KAAC,UAAU,IAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAC,SAAS,GAAG,CAC5C,CAAC,CAAC,CAAC,CACH,KAAK,CACL,GACQ,CACV,CAAC;IAEF,OAAO,KAAC,eAAe,KAAG,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Tooltip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/custom/Tooltip.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EACN,QAAQ,EACR,cAAc,EAEd,cAAc,EACd,MAAM,6BAA6B,CAAC;AAGrC,MAAM,MAAM,kBAAkB,GAAG;IAEhC,eAAe,CAAC,EAAE,WAAW,CAAC;CAC9B,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,EAAE,SAAS,CAAC,GAEzD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAAE,MAAM,CAAC,GAAG;IAC3D,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,UAAU,CAAC,EAAE,IAAI,CAChB,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,EAC3C,YAAY,CACZ,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAIH,eAAO,MAAM,OAAO,wGAgEnB,CAAC"}
|