glints-aries 4.0.151 → 4.0.152
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/es/Display/Accordion/Accordion.js +4 -3
- package/es/Display/Accordion/AccordionPanel.d.ts +2 -2
- package/es/Display/Accordion/AccordionPanel.js +2 -1
- package/es/Display/Collapsible/Collapsible.js +2 -1
- package/es/Display/Collapsible/Collapsible.stories.js +2 -1
- package/es/Display/Gallery/GalleryStyle.js +5 -5
- package/es/Display/Modal/Modal.js +2 -1
- package/es/Display/Modal/Modal.stories.js +2 -1
- package/es/Display/Modal/ModalStyle.js +6 -6
- package/es/Display/PointingModal/PointingModal.d.ts +2 -2
- package/es/Display/PointingModal/PointingModal.js +2 -1
- package/es/Display/PointingModal/PointingModalBody.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalBody.js +2 -1
- package/es/Display/PointingModal/PointingModalFooter.js +2 -1
- package/es/Display/PointingModal/PointingModalHeader.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalHeader.js +2 -1
- package/es/Display/PointingModal/PointingModalItem.d.ts +2 -2
- package/es/Display/PointingModal/PointingModalItem.js +2 -1
- package/es/Display/PointingModal/PointingModalStyle.js +6 -6
- package/es/Display/Slider/Slider.d.ts +1 -1
- package/es/Display/Slider/Slider.js +2 -1
- package/es/Display/Swipeable/SwipeableItem.d.ts +2 -2
- package/es/Display/Swipeable/SwipeableItem.js +2 -1
- package/es/Display/Swipeable/SwipeableStyle.js +3 -3
- package/es/Display/Tabs/TabPane.d.ts +2 -2
- package/es/Display/Tabs/TabPane.js +2 -1
- package/es/Display/Tabs/TabsStyle.js +4 -4
- package/es/Display/Tooltip/Tooltip.js +2 -1
- package/es/Display/Tooltip/Tooltip.stories.js +5 -3
- package/es/Display/Tooltip/TooltipStyle.d.ts +1 -2
- package/es/General/Alert/AlertStyle.js +4 -4
- package/es/General/Badge/Badge.d.ts +2 -2
- package/es/General/Badge/Badge.js +2 -1
- package/es/General/Badge/Badge.stories.js +1 -1
- package/es/General/Badge/BadgeStyle.js +1 -1
- package/es/General/Brand/Brand.d.ts +2 -2
- package/es/General/Brand/Brand.js +2 -1
- package/es/General/Brand/BrandStyle.js +2 -2
- package/es/General/Button/Button.js +2 -1
- package/es/General/Button/ButtonStyle.js +11 -11
- package/es/General/Button/GhostButton.d.ts +32 -5
- package/es/General/Button/GhostButton.js +2 -1
- package/es/General/Button/LinkButton.d.ts +28 -5
- package/es/General/Button/LinkButton.js +2 -1
- package/es/General/Button/SolidButton.d.ts +32 -5
- package/es/General/Button/SolidButton.js +2 -1
- package/es/General/Button/SolidShadowButton.d.ts +31 -5
- package/es/General/Button/SolidShadowButton.js +2 -1
- package/es/General/Divider/Divider.js +2 -1
- package/es/General/Heading/Heading.js +2 -1
- package/es/General/Heading/Heading.stories.js +2 -1
- package/es/General/Icon/Icon.js +2 -1
- package/es/General/Icon/IconStyle.js +1 -1
- package/es/General/Loading/LoadingStyle.js +2 -2
- package/es/General/ProfilePicture/ProfilePicture.d.ts +2 -2
- package/es/General/ProfilePicture/ProfilePicture.js +2 -1
- package/es/General/ProfilePicture/ProfilePictureStyle.js +2 -2
- package/es/General/Tag/ActionTags/AddTag.js +1 -1
- package/es/General/Tag/ActionTags/ResetTag.js +1 -1
- package/es/General/Tag/BasicTag.d.ts +2 -2
- package/es/General/Tag/BasicTag.js +2 -1
- package/es/General/Tag/Tag.js +2 -1
- package/es/General/Typography/Paragraph.js +2 -1
- package/es/General/Typography/Title.js +2 -1
- package/es/Input/Checkbox/Checkbox.js +2 -1
- package/es/Input/Checkbox/CheckboxStyle.js +1 -1
- package/es/Input/Datepicker/Datepicker.d.ts +1 -1
- package/es/Input/Datepicker/DatepickerStyle.js +12 -12
- package/es/Input/DownshiftSelect/Select.js +4 -3
- package/es/Input/DownshiftSelect/Select.stories.js +8 -8
- package/es/Input/DownshiftSelect/SelectStyle.js +16 -16
- package/es/Input/NumberInput/NumberInput.d.ts +2 -2
- package/es/Input/PhoneNumberInput/PhoneNumberInput.js +4 -3
- package/es/Input/RadioButton/RadioButton.d.ts +1 -1
- package/es/Input/RadioButton/RadioButton.js +2 -1
- package/es/Input/Select/Select.d.ts +2 -2
- package/es/Input/Select/Select.js +13 -12
- package/es/Input/Select/SelectItem.d.ts +2 -2
- package/es/Input/Select/SelectItem.js +2 -1
- package/es/Input/Select/SelectList.js +2 -1
- package/es/Input/Select/SelectStyle.js +7 -7
- package/es/Input/TextField/TextField.d.ts +63 -3
- package/es/Input/TextField/TextField.js +3 -2
- package/es/Input/Textarea/Textarea.js +3 -2
- package/es/Input/ToggleSwitch/Styles.js +2 -2
- package/es/Input/ToggleSwitch/ToggleSwitch.js +2 -1
- package/es/Layout/Box/constants.js +2 -2
- package/es/Layout/Box/index.js +1 -1
- package/es/Layout/Box/types.js +1 -0
- package/es/Layout/Flex/Flex.stories.js +2 -2
- package/es/Layout/Flex/FlexStoryStyle.js +2 -2
- package/es/Layout/Flex/index.d.ts +3 -1
- package/es/Layout/Flex/index.js +2 -1
- package/es/Layout/Grid/Col.js +2 -1
- package/es/Layout/Grid/Row.js +2 -1
- package/es/Navigation/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/es/Navigation/Breadcrumb/Breadcrumb.js +2 -1
- package/es/Navigation/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/es/Navigation/Breadcrumb/BreadcrumbItem.js +2 -1
- package/es/Navigation/Breadcrumb/BreadcrumbStyle.js +2 -2
- package/es/Navigation/Drawer/Drawer.d.ts +1 -1
- package/es/Navigation/Drawer/Drawer.js +3 -2
- package/es/Navigation/Dropdown/Dropdown.js +2 -1
- package/es/Navigation/Dropdown/DropdownItem.d.ts +2 -2
- package/es/Navigation/Dropdown/DropdownItem.js +2 -1
- package/es/Utils/Shadow/ShadowsStoriesHelpers.js +2 -2
- package/lib/Display/Accordion/Accordion.js +9 -5
- package/lib/Display/Accordion/Accordion.stories.js +1 -1
- package/lib/Display/Accordion/AccordionPanel.d.ts +2 -2
- package/lib/Display/Accordion/AccordionPanel.js +7 -3
- package/lib/Display/Accordion/AccordionStyle.js +5 -3
- package/lib/Display/Collapsible/Collapsible.js +7 -3
- package/lib/Display/Collapsible/Collapsible.stories.js +3 -2
- package/lib/Display/Collapsible/CollapsibleStyle.js +5 -3
- package/lib/Display/Gallery/Gallery.js +4 -2
- package/lib/Display/Gallery/Gallery.stories.js +1 -1
- package/lib/Display/Gallery/GalleryStyle.js +6 -6
- package/lib/Display/Modal/Modal.js +7 -3
- package/lib/Display/Modal/Modal.stories.js +8 -4
- package/lib/Display/Modal/ModalStyle.js +7 -7
- package/lib/Display/PointingModal/PointingModal.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModal.js +7 -3
- package/lib/Display/PointingModal/PointingModal.stories.js +1 -1
- package/lib/Display/PointingModal/PointingModalBody.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalBody.js +7 -3
- package/lib/Display/PointingModal/PointingModalFooter.js +7 -3
- package/lib/Display/PointingModal/PointingModalHeader.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalHeader.js +7 -3
- package/lib/Display/PointingModal/PointingModalItem.d.ts +2 -2
- package/lib/Display/PointingModal/PointingModalItem.js +7 -3
- package/lib/Display/PointingModal/PointingModalStyle.js +7 -7
- package/lib/Display/Popover/Popover.js +4 -2
- package/lib/Display/Popover/Popover.stories.js +1 -1
- package/lib/Display/Popover/PopoverStyle.js +5 -3
- package/lib/Display/Slider/LeftArrow.js +4 -2
- package/lib/Display/Slider/RightArrow.js +4 -2
- package/lib/Display/Slider/Slider.d.ts +1 -1
- package/lib/Display/Slider/Slider.js +6 -3
- package/lib/Display/Slider/Slider.stories.js +1 -1
- package/lib/Display/Slider/SliderItem.js +4 -2
- package/lib/Display/Slider/SliderStyle.js +5 -3
- package/lib/Display/Swipeable/Swipeable.js +4 -2
- package/lib/Display/Swipeable/Swipeable.stories.js +1 -1
- package/lib/Display/Swipeable/SwipeableItem.d.ts +2 -2
- package/lib/Display/Swipeable/SwipeableItem.js +7 -3
- package/lib/Display/Swipeable/SwipeableStyle.js +4 -4
- package/lib/Display/Tabs/TabPane.d.ts +2 -2
- package/lib/Display/Tabs/TabPane.js +7 -3
- package/lib/Display/Tabs/Tabs.js +4 -2
- package/lib/Display/Tabs/Tabs.stories.js +1 -1
- package/lib/Display/Tabs/TabsStyle.js +5 -5
- package/lib/Display/Tooltip/Tooltip.js +7 -3
- package/lib/Display/Tooltip/Tooltip.stories.js +6 -4
- package/lib/Display/Tooltip/TooltipStyle.d.ts +1 -2
- package/lib/General/Alert/Alert.js +4 -2
- package/lib/General/Alert/Alert.stories.js +5 -3
- package/lib/General/Alert/AlertStyle.js +9 -7
- package/lib/General/Badge/Badge.d.ts +2 -2
- package/lib/General/Badge/Badge.js +7 -3
- package/lib/General/Badge/Badge.stories.js +2 -2
- package/lib/General/Badge/BadgeStyle.js +1 -1
- package/lib/General/Brand/Brand.d.ts +2 -2
- package/lib/General/Brand/Brand.js +7 -3
- package/lib/General/Brand/Brand.stories.js +1 -1
- package/lib/General/Brand/BrandStyle.js +2 -2
- package/lib/General/Button/Button.js +4 -2
- package/lib/General/Button/Button.stories.js +1 -1
- package/lib/General/Button/ButtonStyle.js +12 -12
- package/lib/General/Button/GhostButton.d.ts +32 -5
- package/lib/General/Button/GhostButton.js +7 -3
- package/lib/General/Button/LinkButton.d.ts +28 -5
- package/lib/General/Button/LinkButton.js +7 -3
- package/lib/General/Button/SolidButton.d.ts +32 -5
- package/lib/General/Button/SolidButton.js +7 -3
- package/lib/General/Button/SolidShadowButton.d.ts +31 -5
- package/lib/General/Button/SolidShadowButton.js +7 -3
- package/lib/General/Divider/Divider.js +3 -1
- package/lib/General/Divider/Divider.stories.js +5 -3
- package/lib/General/Heading/Heading.js +3 -1
- package/lib/General/Heading/Heading.stories.js +3 -2
- package/lib/General/Icon/Icon.js +8 -4
- package/lib/General/Icon/IconStoriesHelpers.js +5 -3
- package/lib/General/Icon/IconStyle.js +1 -1
- package/lib/General/Icon/LegacyIcon.js +4 -2
- package/lib/General/Icon/components/AddCircleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/AddCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/AddIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackDoubleIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackIcon.js +4 -2
- package/lib/General/Icon/components/ArrowBackSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownCircleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownIcon.js +4 -2
- package/lib/General/Icon/components/ArrowDownSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextDoubleIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextIcon.js +4 -2
- package/lib/General/Icon/components/ArrowNextSolidIcon.js +4 -2
- package/lib/General/Icon/components/ArrowRoundBackIcon.js +4 -2
- package/lib/General/Icon/components/ArrowRoundForwardIcon.js +4 -2
- package/lib/General/Icon/components/ArrowUpIcon.js +4 -2
- package/lib/General/Icon/components/ArrowUpSolidIcon.js +4 -2
- package/lib/General/Icon/components/AsteriskSolidIcon.js +4 -2
- package/lib/General/Icon/components/AttachmentIcon.js +4 -2
- package/lib/General/Icon/components/BehanceIcon.js +4 -2
- package/lib/General/Icon/components/BellIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkOutlineIcon.js +4 -2
- package/lib/General/Icon/components/BookmarkRoundedOutlineIcon.js +4 -2
- package/lib/General/Icon/components/BoxWithHandleSolidIcon.js +4 -2
- package/lib/General/Icon/components/BriefcaseSolidIcon.js +4 -2
- package/lib/General/Icon/components/BuildingSolidIcon.js +4 -2
- package/lib/General/Icon/components/BulletListIcon.js +4 -2
- package/lib/General/Icon/components/CalendarIcon.js +4 -2
- package/lib/General/Icon/components/CameraIcon.js +4 -2
- package/lib/General/Icon/components/ChecklistIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkSolidIcon.js +4 -2
- package/lib/General/Icon/components/CheckmarkThickIcon.js +4 -2
- package/lib/General/Icon/components/CircleAndCheckIcon.js +4 -2
- package/lib/General/Icon/components/CircleIcon.js +4 -2
- package/lib/General/Icon/components/ClipboardCheckOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ClipboardIcon.js +4 -2
- package/lib/General/Icon/components/ClockIcon.js +4 -2
- package/lib/General/Icon/components/CloseCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/CloseIcon.js +4 -2
- package/lib/General/Icon/components/CloudDownloadIcon.js +4 -2
- package/lib/General/Icon/components/CloudUploadIcon.js +4 -2
- package/lib/General/Icon/components/CodepenIcon.js +4 -2
- package/lib/General/Icon/components/CommunityIcon.js +4 -2
- package/lib/General/Icon/components/CompassIcon.js +4 -2
- package/lib/General/Icon/components/ConnectionIcon.js +4 -2
- package/lib/General/Icon/components/CopyIcon.js +4 -2
- package/lib/General/Icon/components/CopyLinkIcon.js +4 -2
- package/lib/General/Icon/components/CopyOutlinedIcon.js +4 -2
- package/lib/General/Icon/components/CurrencyIcon.js +4 -2
- package/lib/General/Icon/components/DeleteIcon.js +4 -2
- package/lib/General/Icon/components/DiscountSolidIcon.js +4 -2
- package/lib/General/Icon/components/DocumentCheckIcon.js +4 -2
- package/lib/General/Icon/components/DotIcon.js +4 -2
- package/lib/General/Icon/components/DoubleCheckmarkIcon.js +4 -2
- package/lib/General/Icon/components/DoveIcon.js +4 -2
- package/lib/General/Icon/components/DownloadIcon.js +4 -2
- package/lib/General/Icon/components/DragArrowIcon.js +4 -2
- package/lib/General/Icon/components/DragStripesIcon.js +4 -2
- package/lib/General/Icon/components/EditIcon.js +4 -2
- package/lib/General/Icon/components/EditOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ExclamationIcon.js +4 -2
- package/lib/General/Icon/components/ExitFullScreenIcon.js +4 -2
- package/lib/General/Icon/components/ExternalLinkIcon.js +4 -2
- package/lib/General/Icon/components/EyeIcon.js +4 -2
- package/lib/General/Icon/components/EyeSlashedIcon.js +4 -2
- package/lib/General/Icon/components/EyeSolidIcon.js +4 -2
- package/lib/General/Icon/components/FacebookIcon.js +4 -2
- package/lib/General/Icon/components/FileAlternateIcon.js +4 -2
- package/lib/General/Icon/components/FileIcon.js +4 -2
- package/lib/General/Icon/components/FilePreviewIcon.js +4 -2
- package/lib/General/Icon/components/FileSolidIcon.js +4 -2
- package/lib/General/Icon/components/FilterIcon.js +4 -2
- package/lib/General/Icon/components/FlagIcon.js +4 -2
- package/lib/General/Icon/components/FolderIcon.js +4 -2
- package/lib/General/Icon/components/FullScreenIcon.js +4 -2
- package/lib/General/Icon/components/GithubIcon.js +4 -2
- package/lib/General/Icon/components/GlobeIcon.js +4 -2
- package/lib/General/Icon/components/GraduationHatIcon.js +4 -2
- package/lib/General/Icon/components/GroupIcon.js +4 -2
- package/lib/General/Icon/components/GuaranteeIcon.js +4 -2
- package/lib/General/Icon/components/HandIcon.js +4 -2
- package/lib/General/Icon/components/HandShakeIcon.js +4 -2
- package/lib/General/Icon/components/HeartIcon.js +4 -2
- package/lib/General/Icon/components/HeartSolidIcon.js +4 -2
- package/lib/General/Icon/components/HelpIcon.js +4 -2
- package/lib/General/Icon/components/HomeIcon.js +4 -2
- package/lib/General/Icon/components/HourglassIcon.js +4 -2
- package/lib/General/Icon/components/ImageIcon.js +4 -2
- package/lib/General/Icon/components/InfoIcon.js +4 -2
- package/lib/General/Icon/components/InfoSolidIcon.js +4 -2
- package/lib/General/Icon/components/InstagramIcon.js +4 -2
- package/lib/General/Icon/components/JobOutlineIcon.js +4 -2
- package/lib/General/Icon/components/JobSearchIcon.js +4 -2
- package/lib/General/Icon/components/LightbulbIcon.js +4 -2
- package/lib/General/Icon/components/LightningOutlineIcon.js +4 -2
- package/lib/General/Icon/components/LineIcon.js +4 -2
- package/lib/General/Icon/components/LinkedinIcon.js +4 -2
- package/lib/General/Icon/components/LoadingIcon.js +4 -2
- package/lib/General/Icon/components/LocationIcon.js +4 -2
- package/lib/General/Icon/components/LockSolidIcon.js +4 -2
- package/lib/General/Icon/components/MailIcon.js +4 -2
- package/lib/General/Icon/components/MailSolidIcon.js +4 -2
- package/lib/General/Icon/components/MedalIcon.js +4 -2
- package/lib/General/Icon/components/MenuHalfIcon.js +4 -2
- package/lib/General/Icon/components/MenuIcon.js +4 -2
- package/lib/General/Icon/components/MessageOutlineIcon.js +4 -2
- package/lib/General/Icon/components/MessageOutlineIncomingIcon.js +4 -2
- package/lib/General/Icon/components/MicIcon.js +4 -2
- package/lib/General/Icon/components/MicOffIcon.js +4 -2
- package/lib/General/Icon/components/MinusCircleIcon.js +4 -2
- package/lib/General/Icon/components/MinusCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/MinusIcon.js +4 -2
- package/lib/General/Icon/components/MoreHorizontalIcon.js +4 -2
- package/lib/General/Icon/components/MoreIcon.js +4 -2
- package/lib/General/Icon/components/NameTagIcon.js +4 -2
- package/lib/General/Icon/components/NotificationIcon.js +4 -2
- package/lib/General/Icon/components/NumberListIcon.js +4 -2
- package/lib/General/Icon/components/OnlineIcon.js +4 -2
- package/lib/General/Icon/components/PdfIcon.js +4 -2
- package/lib/General/Icon/components/PdfOutlineIcon.js +4 -2
- package/lib/General/Icon/components/PhoneIcon.js +4 -2
- package/lib/General/Icon/components/PowerIcon.js +4 -2
- package/lib/General/Icon/components/PuzzleIcon.js +4 -2
- package/lib/General/Icon/components/QuestionOutlineIcon.js +4 -2
- package/lib/General/Icon/components/QuotationIcon.js +4 -2
- package/lib/General/Icon/components/RefreshSolidIcon.js +4 -2
- package/lib/General/Icon/components/ReplyIcon.js +4 -2
- package/lib/General/Icon/components/ResumeOutlineIcon.js +4 -2
- package/lib/General/Icon/components/RotateIcon.js +4 -2
- package/lib/General/Icon/components/RssIcon.js +4 -2
- package/lib/General/Icon/components/SalaryIcon.js +4 -2
- package/lib/General/Icon/components/SaveSolidIcon.js +4 -2
- package/lib/General/Icon/components/SearchIcon.js +4 -2
- package/lib/General/Icon/components/SendIcon.js +4 -2
- package/lib/General/Icon/components/SettingIcon.js +4 -2
- package/lib/General/Icon/components/SettingSolidIcon.js +4 -2
- package/lib/General/Icon/components/ShareArrowIcon.js +4 -2
- package/lib/General/Icon/components/ShareArrowOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ShareIcon.js +4 -2
- package/lib/General/Icon/components/ShareOutlineIcon.js +4 -2
- package/lib/General/Icon/components/ShareScreenIcon.js +4 -2
- package/lib/General/Icon/components/ShieldCheckIcon.js +4 -2
- package/lib/General/Icon/components/SpeakerIcon.js +4 -2
- package/lib/General/Icon/components/SpeechBubbleIcon.js +4 -2
- package/lib/General/Icon/components/SpeechBubbleOutlineIcon.js +4 -2
- package/lib/General/Icon/components/SpinnerIcon.js +4 -2
- package/lib/General/Icon/components/StackIcon.js +4 -2
- package/lib/General/Icon/components/StarCircleIcon.js +4 -2
- package/lib/General/Icon/components/StarIcon.js +4 -2
- package/lib/General/Icon/components/StarOutlineIcon.js +4 -2
- package/lib/General/Icon/components/TagIcon.js +4 -2
- package/lib/General/Icon/components/TaskIcon.js +4 -2
- package/lib/General/Icon/components/TelegramIcon.js +4 -2
- package/lib/General/Icon/components/ThumbsUpIcon.js +4 -2
- package/lib/General/Icon/components/ThumbsUpOutlineIcon.js +4 -2
- package/lib/General/Icon/components/TicketSolidIcon.js +4 -2
- package/lib/General/Icon/components/TieIcon.js +4 -2
- package/lib/General/Icon/components/TrashIcon.js +4 -2
- package/lib/General/Icon/components/TvPlayIcon.js +4 -2
- package/lib/General/Icon/components/TwitterIcon.js +4 -2
- package/lib/General/Icon/components/UploadIcon.js +4 -2
- package/lib/General/Icon/components/UpvoteIcon.js +4 -2
- package/lib/General/Icon/components/UserCogIcon.js +4 -2
- package/lib/General/Icon/components/UserIcon.js +4 -2
- package/lib/General/Icon/components/UserWrenchIcon.js +4 -2
- package/lib/General/Icon/components/VideoIcon.js +4 -2
- package/lib/General/Icon/components/VideoOffIcon.js +4 -2
- package/lib/General/Icon/components/ViewIcon.js +4 -2
- package/lib/General/Icon/components/VimeoIcon.js +4 -2
- package/lib/General/Icon/components/WarningCircleSolidIcon.js +4 -2
- package/lib/General/Icon/components/WarningIcon.js +4 -2
- package/lib/General/Icon/components/WarningOutlineIcon.js +4 -2
- package/lib/General/Icon/components/WarningSolidIcon.js +4 -2
- package/lib/General/Icon/components/WhatsappIcon.js +4 -2
- package/lib/General/Icon/components/YoutubeIcon.js +4 -2
- package/lib/General/Icon/components/ZaloIcon.js +4 -2
- package/lib/General/Icon/components/index.js +2 -2
- package/lib/General/Loading/Loading.stories.js +5 -3
- package/lib/General/Loading/LoadingStyle.js +6 -4
- package/lib/General/ProfilePicture/ProfilePicture.d.ts +2 -2
- package/lib/General/ProfilePicture/ProfilePicture.js +7 -3
- package/lib/General/ProfilePicture/ProfilePicture.stories.js +1 -1
- package/lib/General/ProfilePicture/ProfilePictureStyle.js +3 -3
- package/lib/General/Tag/ActionTags/AddTag.js +1 -1
- package/lib/General/Tag/ActionTags/ResetTag.js +1 -1
- package/lib/General/Tag/BasicTag.d.ts +2 -2
- package/lib/General/Tag/BasicTag.js +7 -3
- package/lib/General/Tag/Tag.js +7 -3
- package/lib/General/Tag/Tag.stories.js +1 -1
- package/lib/General/Tag/TagStyle.js +1 -1
- package/lib/General/Typography/Paragraph.js +7 -3
- package/lib/General/Typography/Paragraph.stories.js +1 -1
- package/lib/General/Typography/ParagraphStyles.js +1 -1
- package/lib/General/Typography/Title.js +7 -3
- package/lib/General/Typography/Title.stories.js +1 -1
- package/lib/General/Typography/TitleStyles.js +1 -1
- package/lib/General/Typography/Typography.js +4 -2
- package/lib/Input/Checkbox/Checkbox.js +7 -3
- package/lib/Input/Checkbox/Checkbox.stories.js +5 -3
- package/lib/Input/Checkbox/CheckboxStyle.js +1 -1
- package/lib/Input/Datepicker/Datepicker.d.ts +1 -1
- package/lib/Input/Datepicker/Datepicker.js +4 -2
- package/lib/Input/Datepicker/DatepickerStyle.js +13 -13
- package/lib/Input/DownshiftSelect/Select.js +10 -6
- package/lib/Input/DownshiftSelect/Select.stories.js +13 -11
- package/lib/Input/DownshiftSelect/SelectStyle.js +17 -17
- package/lib/Input/NumberInput/NumberInput.d.ts +2 -2
- package/lib/Input/NumberInput/NumberInput.js +4 -2
- package/lib/Input/NumberInput/NumberInput.stories.js +5 -3
- package/lib/Input/PhoneNumberInput/PhoneNumberInput.js +9 -5
- package/lib/Input/PhoneNumberInput/PhoneNumberInput.stories.js +5 -3
- package/lib/Input/PhoneNumberInput/PhoneNumberInputStyles.js +5 -3
- package/lib/Input/RadioButton/RadioButton.d.ts +1 -1
- package/lib/Input/RadioButton/RadioButton.js +7 -3
- package/lib/Input/RadioButton/RadioButton.stories.js +1 -1
- package/lib/Input/RadioButton/RadioButtonStyle.js +5 -3
- package/lib/Input/SearchFilter/SearchFilterStyle.js +1 -1
- package/lib/Input/Select/Select.d.ts +2 -2
- package/lib/Input/Select/Select.js +18 -14
- package/lib/Input/Select/Select.stories.js +1 -1
- package/lib/Input/Select/SelectItem.d.ts +2 -2
- package/lib/Input/Select/SelectItem.js +7 -3
- package/lib/Input/Select/SelectList.js +7 -3
- package/lib/Input/Select/SelectStyle.js +8 -8
- package/lib/Input/TextField/TextField.d.ts +63 -3
- package/lib/Input/TextField/TextField.js +9 -5
- package/lib/Input/TextField/TextField.stories.js +5 -3
- package/lib/Input/TextField/TextFieldStyle.js +1 -1
- package/lib/Input/Textarea/Textarea.js +3 -2
- package/lib/Input/Textarea/Textarea.stories.js +5 -3
- package/lib/Input/Textarea/TextareaStyle.js +1 -1
- package/lib/Input/ToggleSwitch/Styles.js +3 -3
- package/lib/Input/ToggleSwitch/ToggleSwitch.js +7 -3
- package/lib/Input/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/lib/Layout/Box/Box.stories.js +5 -3
- package/lib/Layout/Box/BoxStoryStyle.js +1 -1
- package/lib/Layout/Box/constants.js +2 -2
- package/lib/Layout/Box/index.js +6 -4
- package/lib/Layout/Flex/Flex.stories.js +7 -5
- package/lib/Layout/Flex/FlexStoryStyle.js +3 -3
- package/lib/Layout/Flex/index.d.ts +3 -1
- package/lib/Layout/Flex/index.js +8 -4
- package/lib/Layout/GlintsContainer/GlintsContainer.js +5 -3
- package/lib/Layout/Grid/Col.js +7 -3
- package/lib/Layout/Grid/Row.js +7 -3
- package/lib/Navigation/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/Navigation/Breadcrumb/Breadcrumb.js +7 -3
- package/lib/Navigation/Breadcrumb/Breadcrumb.stories.js +1 -1
- package/lib/Navigation/Breadcrumb/BreadcrumbItem.d.ts +2 -2
- package/lib/Navigation/Breadcrumb/BreadcrumbItem.js +7 -3
- package/lib/Navigation/Breadcrumb/BreadcrumbStyle.js +3 -3
- package/lib/Navigation/Drawer/Drawer.d.ts +1 -1
- package/lib/Navigation/Drawer/Drawer.js +8 -4
- package/lib/Navigation/Drawer/Drawer.stories.js +5 -3
- package/lib/Navigation/Drawer/DrawerStyle.js +4 -2
- package/lib/Navigation/Dropdown/Dropdown.js +7 -3
- package/lib/Navigation/Dropdown/Dropdown.stories.js +1 -1
- package/lib/Navigation/Dropdown/DropdownItem.d.ts +2 -2
- package/lib/Navigation/Dropdown/DropdownItem.js +7 -3
- package/lib/Navigation/Dropdown/DropdownStyle.js +1 -1
- package/lib/Utils/Colors.js +1 -1
- package/lib/Utils/ColorsStoriesHelpers.js +1 -1
- package/lib/Utils/DelayedUnmount.js +4 -2
- package/lib/Utils/Icon/IconLibrary.js +4 -2
- package/lib/Utils/Icon/generateIcons.js +4 -2
- package/lib/Utils/Shadow/ShadowsStoriesHelpers.js +3 -3
- package/lib/Utils/StyleConfig.js +1 -1
- package/lib/index.js +3 -3
- package/lib/stories/story-components/AriesStatus.js +4 -2
- package/package.json +31 -35
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -17,6 +15,12 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
17
15
|
|
|
18
16
|
var _RadioButtonStyle = require("./RadioButtonStyle");
|
|
19
17
|
|
|
18
|
+
var _excluded = ["className", "children", "error", "label", "labelProps", "theme", "border", "disabled", "size"];
|
|
19
|
+
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
|
|
22
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
23
|
+
|
|
20
24
|
/** The className will be passed to
|
|
21
25
|
* the main radio button container. ...inputProps is passed to the
|
|
22
26
|
* input tag. */
|
|
@@ -34,7 +38,7 @@ var RadioButton = function RadioButton(_ref) {
|
|
|
34
38
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
35
39
|
_ref$size = _ref.size,
|
|
36
40
|
size = _ref$size === void 0 ? 'regular' : _ref$size,
|
|
37
|
-
inputProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
41
|
+
inputProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
38
42
|
var content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_RadioButtonStyle.RadioIcon, {
|
|
39
43
|
error: error,
|
|
40
44
|
theme: theme,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.SmallRadioButton = exports.RadioButtonWithError = exports.RadioButtonWithBorder = exports.Interactive = exports.DisabledRadioButton = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
4
|
+
exports.RadioLabel = exports.RadioIcon = exports.RadioContainer = exports.Border = void 0;
|
|
7
5
|
|
|
8
6
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
7
|
|
|
10
8
|
var _Colors = require("../../Utils/Colors");
|
|
11
9
|
|
|
10
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
|
+
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
+
|
|
12
14
|
var getStateColor = function getStateColor(_ref, checked) {
|
|
13
15
|
var disabled = _ref.disabled,
|
|
14
16
|
error = _ref.error,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.SearchFilterResultContainer = exports.SearchFilterListWrapper = exports.SearchFilterItemWrapper = exports.SearchFilterContainer = exports.SearchFilterButton = exports.SearchFilterBodyWrapper = exports.SearchFilterBar = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -12,7 +12,7 @@ export interface SelectInputProps {
|
|
|
12
12
|
/** Deprecated! */
|
|
13
13
|
status?: string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export declare type Props = React.ComponentPropsWithoutRef<typeof SelectInput> & SelectInputProps & {
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
/** Sets value for Input. */
|
|
18
18
|
value?: string;
|
|
@@ -46,6 +46,6 @@ export interface Props extends React.ComponentPropsWithoutRef<typeof SelectInput
|
|
|
46
46
|
onChange?(value: string): void;
|
|
47
47
|
/** Called when value of input is changed. */
|
|
48
48
|
onInputChange?(event: React.ChangeEvent<HTMLInputElement>): void;
|
|
49
|
-
}
|
|
49
|
+
};
|
|
50
50
|
export declare const Option: React.FC<SelectItemProps>;
|
|
51
51
|
export default Select;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -29,6 +27,12 @@ var _SelectStyle = require("./SelectStyle");
|
|
|
29
27
|
|
|
30
28
|
var _canWarn = require("../../Utils/canWarn");
|
|
31
29
|
|
|
30
|
+
var _excluded = ["label", "status", "disabled", "className", "onFocus", "onBlur", "onChange", "onInputChange", "noOptionResult", "small", "disableTyping", "removeFloatingLabel", "removeDropIcon", "error", "renderError", "value", "defaultValue", "defaultOpen", "children", "isLoading", "filterFunction"];
|
|
31
|
+
|
|
32
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
33
|
+
|
|
34
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
35
|
+
|
|
32
36
|
var defaultFilterFunction = function defaultFilterFunction(option, search) {
|
|
33
37
|
return (0, _toLower["default"])(option).includes((0, _toLower["default"])(search));
|
|
34
38
|
};
|
|
@@ -58,7 +62,7 @@ var Select = function Select(props) {
|
|
|
58
62
|
isLoading = props.isLoading,
|
|
59
63
|
_props$filterFunction = props.filterFunction,
|
|
60
64
|
filterFunction = _props$filterFunction === void 0 ? defaultFilterFunction : _props$filterFunction,
|
|
61
|
-
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props,
|
|
65
|
+
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded); // warn deprecated prop "status"
|
|
62
66
|
|
|
63
67
|
React.useEffect(function warnDeprecatedProp() {
|
|
64
68
|
if (status) {
|
|
@@ -268,17 +272,17 @@ var Select = function Select(props) {
|
|
|
268
272
|
setShouldScrollToActiveOption(true);
|
|
269
273
|
} // down arrow key
|
|
270
274
|
else if (e.keyCode === 40 && activeOptionIndex < options.length - 1) {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
275
|
+
setActiveOptionIndex(activeOptionIndex + 1);
|
|
276
|
+
setShouldScrollToActiveOption(true);
|
|
277
|
+
} // enter key
|
|
278
|
+
else if (e.keyCode === 13) {
|
|
279
|
+
inputElement.blur();
|
|
280
|
+
handleClickOnOption();
|
|
281
|
+
} // escape key
|
|
282
|
+
else if (e.keyCode === 27) {
|
|
283
|
+
inputElement.blur();
|
|
284
|
+
setIsFocus(false);
|
|
285
|
+
}
|
|
282
286
|
}, [disableTyping, options, activeOptionIndex, handleClickOnOption]);
|
|
283
287
|
React.useEffect(function handleScrollToActiveElement() {
|
|
284
288
|
if (shouldScrollToActiveOption) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.Sizes = exports.RemoveFloatingLabel = exports.RemoveDropIcon = exports.LoadingOptions = exports.Error = exports.Disabled = exports.DisableTyping = exports.DefaultValue = exports.DefaultSelect = exports.CustomizeNoOptionResultMessage = exports.CustomizeFilterFunction = exports.BasicUsage = void 0;
|
|
7
7
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SelectItemWrapper } from './SelectStyle';
|
|
3
3
|
declare const SelectItem: React.FunctionComponent<Props>;
|
|
4
|
-
|
|
4
|
+
declare type Props = React.ComponentPropsWithoutRef<typeof SelectItemWrapper> & {
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
onClick?(event: React.MouseEvent<HTMLLIElement, MouseEvent>): void;
|
|
7
7
|
className?: string;
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
9
|
export default SelectItem;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -15,11 +13,17 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
15
13
|
|
|
16
14
|
var _SelectStyle = require("./SelectStyle");
|
|
17
15
|
|
|
16
|
+
var _excluded = ["children", "className", "onClick"];
|
|
17
|
+
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
18
22
|
var SelectItem = function SelectItem(props) {
|
|
19
23
|
var children = props.children,
|
|
20
24
|
className = props.className,
|
|
21
25
|
onClick = props.onClick,
|
|
22
|
-
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props,
|
|
26
|
+
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
|
23
27
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_SelectStyle.SelectItemWrapper, (0, _extends2["default"])({
|
|
24
28
|
className: className,
|
|
25
29
|
onMouseDown: onClick
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -19,6 +17,12 @@ var _Loading = _interopRequireDefault(require("../../General/Loading"));
|
|
|
19
17
|
|
|
20
18
|
var _SelectStyle = require("./SelectStyle");
|
|
21
19
|
|
|
20
|
+
var _excluded = ["value", "children"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
22
26
|
var SelectList = function SelectList(_ref) {
|
|
23
27
|
var activeOptionIndex = _ref.activeOptionIndex,
|
|
24
28
|
options = _ref.options,
|
|
@@ -39,7 +43,7 @@ var SelectList = function SelectList(_ref) {
|
|
|
39
43
|
var _data$props = data.props,
|
|
40
44
|
value = _data$props.value,
|
|
41
45
|
children = _data$props.children,
|
|
42
|
-
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_data$props,
|
|
46
|
+
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_data$props, _excluded);
|
|
43
47
|
delete restProps.onOptionClick;
|
|
44
48
|
return /*#__PURE__*/React.createElement(_SelectItem["default"], (0, _extends2["default"])({}, restProps, {
|
|
45
49
|
className: activeOptionIndex === index ? 'active' : null,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.SelectWrapper = exports.SelectListWrapper = exports.SelectLabel = exports.SelectItemWrapper = exports.SelectInput = exports.SelectErrorDefault = exports.SelectContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -13,14 +13,14 @@ var _Shadow = require("../../Utils/Shadow");
|
|
|
13
13
|
|
|
14
14
|
var SelectContainer = _styledComponents["default"].div.withConfig({
|
|
15
15
|
displayName: "SelectStyle__SelectContainer",
|
|
16
|
-
componentId: "gv8n2w-0"
|
|
16
|
+
componentId: "sc-gv8n2w-0"
|
|
17
17
|
})(["flex-grow:1;position:relative;font-weight:normal;"]);
|
|
18
18
|
|
|
19
19
|
exports.SelectContainer = SelectContainer;
|
|
20
20
|
|
|
21
21
|
var SelectWrapper = _styledComponents["default"].div.withConfig({
|
|
22
22
|
displayName: "SelectStyle__SelectWrapper",
|
|
23
|
-
componentId: "gv8n2w-1"
|
|
23
|
+
componentId: "sc-gv8n2w-1"
|
|
24
24
|
})(["display:flex;align-items:center;.select-icon{font-size:", ";position:absolute;right:15px;display:flex;align-items:center;cursor:pointer;svg{transform:", ";transition:", ";}}"], function (_ref) {
|
|
25
25
|
var small = _ref.small;
|
|
26
26
|
return small ? '12px' : '15px';
|
|
@@ -36,7 +36,7 @@ exports.SelectWrapper = SelectWrapper;
|
|
|
36
36
|
|
|
37
37
|
var SelectLabel = _styledComponents["default"].label.withConfig({
|
|
38
38
|
displayName: "SelectStyle__SelectLabel",
|
|
39
|
-
componentId: "gv8n2w-2"
|
|
39
|
+
componentId: "sc-gv8n2w-2"
|
|
40
40
|
})(["position:absolute;left:", ";background:", ";color:", ";transition:all .2s;pointer-events:none;font-size:", ";", " ", " ", ""], function (_ref4) {
|
|
41
41
|
var small = _ref4.small;
|
|
42
42
|
return small ? '16px' : '22px';
|
|
@@ -72,7 +72,7 @@ exports.SelectLabel = SelectLabel;
|
|
|
72
72
|
|
|
73
73
|
var SelectInput = _styledComponents["default"].input.withConfig({
|
|
74
74
|
displayName: "SelectStyle__SelectInput",
|
|
75
|
-
componentId: "gv8n2w-3"
|
|
75
|
+
componentId: "sc-gv8n2w-3"
|
|
76
76
|
})(["width:100%;outline:none;height:", ";padding:", ";border:", ";transition:all .5s;font-size:", ";line-height:1.5;&::placeholder{color:", ";}", " ", " &:disabled{cursor:not-allowed;background:", ";+ ", "{", " color:", ";}&:hover{border:2px solid ", ";}}&:hover{border:2px solid ", ";transition:all .5s;", " + ", "{", "}}&:focus{border:2px solid ", ";", " + ", "{padding:0 5px;top:1em;transform:", ";transition:all .2s;color:", ";font-size:12px;", "}}"], function (_ref10) {
|
|
77
77
|
var small = _ref10.small;
|
|
78
78
|
return small ? '46px' : '53px';
|
|
@@ -139,7 +139,7 @@ exports.SelectInput = SelectInput;
|
|
|
139
139
|
|
|
140
140
|
var SelectListWrapper = _styledComponents["default"].ul.withConfig({
|
|
141
141
|
displayName: "SelectStyle__SelectListWrapper",
|
|
142
|
-
componentId: "gv8n2w-4"
|
|
142
|
+
componentId: "sc-gv8n2w-4"
|
|
143
143
|
})(["position:absolute;visibility:", ";opacity:", ";transform:", ";transform-origin:center top;transition:", ";background:", ";min-width:100%;height:auto;box-shadow:", ";z-index:9999;max-height:200px;overflow:auto;font-size:", ";padding:0;margin:0;"], function (_ref22) {
|
|
144
144
|
var open = _ref22.open;
|
|
145
145
|
return open ? 'visible' : 'hidden';
|
|
@@ -161,7 +161,7 @@ exports.SelectListWrapper = SelectListWrapper;
|
|
|
161
161
|
|
|
162
162
|
var SelectItemWrapper = _styledComponents["default"].li.withConfig({
|
|
163
163
|
displayName: "SelectStyle__SelectItemWrapper",
|
|
164
|
-
componentId: "gv8n2w-5"
|
|
164
|
+
componentId: "sc-gv8n2w-5"
|
|
165
165
|
})(["display:flex;align-items:center;cursor:pointer;padding:0.5em 1em;list-style-type:none;&:first-child{margin-top:0.5em;}&:last-child{margin-bottom:0.5em;}&.active{color:", ";background:", ";}&.select-loading{justify-content:center;}", ""], _Colors.SecondaryColor.actionblue, _Colors.Greyscale.softgrey, function (_ref27) {
|
|
166
166
|
var disabled = _ref27.disabled;
|
|
167
167
|
|
|
@@ -174,7 +174,7 @@ exports.SelectItemWrapper = SelectItemWrapper;
|
|
|
174
174
|
|
|
175
175
|
var SelectErrorDefault = _styledComponents["default"].span.withConfig({
|
|
176
176
|
displayName: "SelectStyle__SelectErrorDefault",
|
|
177
|
-
componentId: "gv8n2w-6"
|
|
177
|
+
componentId: "sc-gv8n2w-6"
|
|
178
178
|
})(["color:", ";"], _Colors.PrimaryColor.glintsred);
|
|
179
179
|
|
|
180
180
|
exports.SelectErrorDefault = SelectErrorDefault;
|
|
@@ -10,7 +10,7 @@ export declare const isFilled: (type: textFieldType, value: any) => boolean;
|
|
|
10
10
|
* internal text field input. */
|
|
11
11
|
export declare const TextField: React.FunctionComponent<Props>;
|
|
12
12
|
export declare type textFieldType = 'text' | 'password' | 'number';
|
|
13
|
-
export
|
|
13
|
+
export declare type Props = React.ComponentPropsWithoutRef<typeof TextFieldInput> & {
|
|
14
14
|
type: textFieldType;
|
|
15
15
|
/** Placeholder for the text field. */
|
|
16
16
|
label: string;
|
|
@@ -30,6 +30,66 @@ export interface Props extends React.ComponentPropsWithoutRef<typeof TextFieldIn
|
|
|
30
30
|
startIcon?: React.ReactNode;
|
|
31
31
|
/** Icon at the end of the input element. */
|
|
32
32
|
endIcon?: React.ReactNode;
|
|
33
|
-
}
|
|
34
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<
|
|
33
|
+
};
|
|
34
|
+
declare const _default: React.ForwardRefExoticComponent<(Pick<Pick<{
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
[x: number]: any;
|
|
37
|
+
[x: symbol]: any;
|
|
38
|
+
} & {
|
|
39
|
+
theme?: any;
|
|
40
|
+
} & {
|
|
41
|
+
as?: string | React.ComponentType<any>;
|
|
42
|
+
forwardedAs?: string | React.ComponentType<any>;
|
|
43
|
+
}, string | number | symbol> & {
|
|
44
|
+
type: textFieldType;
|
|
45
|
+
/** Placeholder for the text field. */
|
|
46
|
+
label: string;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
removeFloatingLabel?: boolean;
|
|
50
|
+
/** If true, removes the input content with clear icon. Works for type "text" only. */
|
|
51
|
+
allowClear?: boolean;
|
|
52
|
+
/** Minimum value of the "number" type input */
|
|
53
|
+
min?: number;
|
|
54
|
+
/** Maximum value of the "number" type input. */
|
|
55
|
+
max?: number;
|
|
56
|
+
/** Step value for the "number" type input */
|
|
57
|
+
step?: number;
|
|
58
|
+
forwardedRef?: React.RefObject<HTMLInputElement>;
|
|
59
|
+
/** Icon at the start of the input element. */
|
|
60
|
+
startIcon?: React.ReactNode;
|
|
61
|
+
/** Icon at the end of the input element. */
|
|
62
|
+
endIcon?: React.ReactNode;
|
|
63
|
+
}, string | number | symbol> | Pick<Pick<{
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
[x: number]: any;
|
|
66
|
+
[x: symbol]: any;
|
|
67
|
+
} & {
|
|
68
|
+
theme?: any;
|
|
69
|
+
} & {
|
|
70
|
+
children?: React.ReactNode;
|
|
71
|
+
} & {
|
|
72
|
+
as?: string | React.ComponentType<any>;
|
|
73
|
+
forwardedAs?: string | React.ComponentType<any>;
|
|
74
|
+
}, string | number | symbol> & {
|
|
75
|
+
type: textFieldType;
|
|
76
|
+
/** Placeholder for the text field. */
|
|
77
|
+
label: string;
|
|
78
|
+
disabled?: boolean;
|
|
79
|
+
className?: string;
|
|
80
|
+
removeFloatingLabel?: boolean;
|
|
81
|
+
/** If true, removes the input content with clear icon. Works for type "text" only. */
|
|
82
|
+
allowClear?: boolean;
|
|
83
|
+
/** Minimum value of the "number" type input */
|
|
84
|
+
min?: number;
|
|
85
|
+
/** Maximum value of the "number" type input. */
|
|
86
|
+
max?: number;
|
|
87
|
+
/** Step value for the "number" type input */
|
|
88
|
+
step?: number;
|
|
89
|
+
forwardedRef?: React.RefObject<HTMLInputElement>;
|
|
90
|
+
/** Icon at the start of the input element. */
|
|
91
|
+
startIcon?: React.ReactNode;
|
|
92
|
+
/** Icon at the end of the input element. */
|
|
93
|
+
endIcon?: React.ReactNode;
|
|
94
|
+
}, string | number | symbol>) & React.RefAttributes<HTMLInputElement>>;
|
|
35
95
|
export default _default;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports["default"] = exports.TextField =
|
|
6
|
+
exports.isFilled = exports["default"] = exports.TextField = void 0;
|
|
9
7
|
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
|
|
@@ -19,6 +17,12 @@ var _components = require("../../General/Icon/components");
|
|
|
19
17
|
|
|
20
18
|
var _TextFieldStyle = require("./TextFieldStyle");
|
|
21
19
|
|
|
20
|
+
var _excluded = ["value", "status", "onKeyDown", "disableTyping", "small", "type", "label", "disabled", "className", "removeFloatingLabel", "allowClear", "forwardedRef", "onChange", "startIcon", "endIcon"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
22
26
|
var isFilled = function isFilled(type, value) {
|
|
23
27
|
if (value === undefined || value === null) return false;
|
|
24
28
|
if (type === 'number') return !isNaN(parseInt(value));
|
|
@@ -54,7 +58,7 @@ var TextField = function TextField(_ref) {
|
|
|
54
58
|
onChange = _ref.onChange,
|
|
55
59
|
startIcon = _ref.startIcon,
|
|
56
60
|
endIcon = _ref.endIcon,
|
|
57
|
-
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
61
|
+
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
58
62
|
|
|
59
63
|
var _React$useState = React.useState(false),
|
|
60
64
|
floating = _React$useState[0],
|
|
@@ -93,7 +97,7 @@ var TextField = function TextField(_ref) {
|
|
|
93
97
|
}, /*#__PURE__*/React.createElement(_TextFieldStyle.TextFieldInput, (0, _extends2["default"])({
|
|
94
98
|
ref: forwardedRef,
|
|
95
99
|
type: inputType,
|
|
96
|
-
placeholder: removeFloatingLabel
|
|
100
|
+
placeholder: removeFloatingLabel ? label : undefined,
|
|
97
101
|
status: status,
|
|
98
102
|
disabled: disabled,
|
|
99
103
|
onChange: onChange,
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports
|
|
6
|
+
exports["default"] = exports.TextFieldWithStartIcon = exports.TextFieldWithEndIcon = exports.TextFieldWithClearIcon = exports.PasswordField = exports.Interactive = exports.Disabled = void 0;
|
|
9
7
|
|
|
10
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
9
|
|
|
@@ -17,6 +15,10 @@ var _GlintsContainer = require("../../Layout/GlintsContainer/GlintsContainer");
|
|
|
17
15
|
|
|
18
16
|
var _SearchIcon = _interopRequireDefault(require("../../General/Icon/components/SearchIcon"));
|
|
19
17
|
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Input/TextField',
|
|
22
24
|
component: _TextField.TextField,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.TextFieldLabel = exports.TextFieldInput = exports.TextFieldContainer = exports.StartIconContainer = exports.IconContainer = exports.EndIconContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -17,6 +17,7 @@ var _isFunction = _interopRequireDefault(require("lodash/isFunction"));
|
|
|
17
17
|
|
|
18
18
|
var _TextareaStyle = require("./TextareaStyle");
|
|
19
19
|
|
|
20
|
+
var _excluded = ["label", "value", "status", "disabled", "className", "onBlur", "onChange", "forwardedRef", "removeFloatingLabel", "small"];
|
|
20
21
|
var MIN_ROWS = 4;
|
|
21
22
|
var MAX_ROWS = 12; // Rows are required to set the textarea height depending on the content added.
|
|
22
23
|
|
|
@@ -44,7 +45,7 @@ var Textarea = function Textarea(_ref) {
|
|
|
44
45
|
removeFloatingLabel = _ref$removeFloatingLa === void 0 ? false : _ref$removeFloatingLa,
|
|
45
46
|
_ref$small = _ref.small,
|
|
46
47
|
small = _ref$small === void 0 ? false : _ref$small,
|
|
47
|
-
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
48
|
+
restProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
48
49
|
|
|
49
50
|
var _React$useState = _react["default"].useState(false),
|
|
50
51
|
floating = _React$useState[0],
|
|
@@ -95,7 +96,7 @@ var Textarea = function Textarea(_ref) {
|
|
|
95
96
|
className: (0, _classnames["default"])('aries-textarea', className)
|
|
96
97
|
}, /*#__PURE__*/_react["default"].createElement(_TextareaStyle.TextareaInput, (0, _extends2["default"])({
|
|
97
98
|
ref: textareaInputRef,
|
|
98
|
-
placeholder: removeFloatingLabel
|
|
99
|
+
placeholder: removeFloatingLabel ? label : undefined,
|
|
99
100
|
rows: rows,
|
|
100
101
|
status: status,
|
|
101
102
|
disabled: disabled,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
exports.__esModule = true;
|
|
6
|
-
exports.removeFloatingLabelIsTrue = exports
|
|
4
|
+
exports.removeFloatingLabelIsTrue = exports["default"] = exports.Interactive = void 0;
|
|
7
5
|
|
|
8
6
|
var React = _interopRequireWildcard(require("react"));
|
|
9
7
|
|
|
@@ -11,6 +9,10 @@ var _Textarea = require("./Textarea");
|
|
|
11
9
|
|
|
12
10
|
var _GlintsContainer = require("../../Layout/GlintsContainer/GlintsContainer");
|
|
13
11
|
|
|
12
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
|
|
14
16
|
var _default = {
|
|
15
17
|
title: 'Input/Textarea',
|
|
16
18
|
component: _Textarea.Textarea,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.TextareaLabel = exports.TextareaInput = exports.TextareaContainer = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports.
|
|
6
|
+
exports.ToggleBall = exports.Toggle = void 0;
|
|
7
7
|
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ var DEFAULTS = {
|
|
|
18
18
|
|
|
19
19
|
var Toggle = _styledComponents["default"].button.withConfig({
|
|
20
20
|
displayName: "Styles__Toggle",
|
|
21
|
-
componentId: "bsue54-0"
|
|
21
|
+
componentId: "sc-bsue54-0"
|
|
22
22
|
})(["cursor:pointer;display:flex;align-items:center;overflow:hidden;position:relative;transform:translate3d(0,0,0);background-color:", ";height:25px;width:56px;border-radius:14px;padding:0px;border:none;"], function (_ref) {
|
|
23
23
|
var active = _ref.active;
|
|
24
24
|
return active ? DEFAULTS.activeBackgroundColor : DEFAULTS.inactiveBackgroundColor;
|
|
@@ -28,7 +28,7 @@ exports.Toggle = Toggle;
|
|
|
28
28
|
|
|
29
29
|
var ToggleBall = _styledComponents["default"].div.withConfig({
|
|
30
30
|
displayName: "Styles__ToggleBall",
|
|
31
|
-
componentId: "bsue54-1"
|
|
31
|
+
componentId: "sc-bsue54-1"
|
|
32
32
|
})(["display:flex;justify-content:center;align-items:center;border-radius:50%;transition:transform 0.3s cubic-bezier(1,0.19,0.15,0.7);transition-delay:0.1s;background-color:", ";height:19px;width:19px;margin:3px;transform:", ";&:active{background-color:", ";}"], DEFAULTS.inactiveBallColor, function (props) {
|
|
33
33
|
return props.active ? "translateX(31px)" : 'translateX(0px)';
|
|
34
34
|
}, DEFAULTS.activeBallColor);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
@@ -19,6 +17,12 @@ var _Colors = require("../../Utils/Colors");
|
|
|
19
17
|
|
|
20
18
|
var _Styles = require("./Styles");
|
|
21
19
|
|
|
20
|
+
var _excluded = ["active", "defaultActive", "iconOptions", "onChange", "className"];
|
|
21
|
+
|
|
22
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
+
|
|
22
26
|
/** The className and ...defaultProps are passed to the main toggle container. */
|
|
23
27
|
var ToggleSwitch = function ToggleSwitch(_ref) {
|
|
24
28
|
var active = _ref.active,
|
|
@@ -27,7 +31,7 @@ var ToggleSwitch = function ToggleSwitch(_ref) {
|
|
|
27
31
|
iconOptions = _ref.iconOptions,
|
|
28
32
|
onChange = _ref.onChange,
|
|
29
33
|
className = _ref.className,
|
|
30
|
-
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref,
|
|
34
|
+
defaultProps = (0, _objectWithoutPropertiesLoose2["default"])(_ref, _excluded);
|
|
31
35
|
|
|
32
36
|
var _React$useState = React.useState(active || defaultActive),
|
|
33
37
|
innerActive = _React$useState[0],
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
|
-
exports
|
|
6
|
+
exports["default"] = exports.ToggleSwitchWithIcons = exports.ToggleSwitchInAnActiveState = exports.Interactive = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
4
|
|
|
7
5
|
exports.__esModule = true;
|
|
8
|
-
exports
|
|
6
|
+
exports["default"] = exports.ResponsiveSpacing = exports.Interactive = void 0;
|
|
9
7
|
|
|
10
8
|
var _react = _interopRequireDefault(require("react"));
|
|
11
9
|
|
|
@@ -17,6 +15,10 @@ var S = _interopRequireWildcard(require("./BoxStoryStyle"));
|
|
|
17
15
|
|
|
18
16
|
var _constants = require("./constants");
|
|
19
17
|
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
|
|
20
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
+
|
|
20
22
|
var _default = {
|
|
21
23
|
title: 'Layout/Box',
|
|
22
24
|
component: _index.Box,
|