@mw-kit/mw-ui 1.9.2 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/icons/feather/Activity.d.ts +1 -1
- package/dist/assets/icons/feather/Airplay.d.ts +1 -1
- package/dist/assets/icons/feather/AlertCircle.d.ts +1 -1
- package/dist/assets/icons/feather/AlertOctagon.d.ts +1 -1
- package/dist/assets/icons/feather/AlertTriangle.d.ts +1 -1
- package/dist/assets/icons/feather/AlignCenter.d.ts +1 -1
- package/dist/assets/icons/feather/AlignJustify.d.ts +1 -1
- package/dist/assets/icons/feather/AlignLeft.d.ts +1 -1
- package/dist/assets/icons/feather/AlignRight.d.ts +1 -1
- package/dist/assets/icons/feather/Anchor.d.ts +1 -1
- package/dist/assets/icons/feather/Aperture.d.ts +1 -1
- package/dist/assets/icons/feather/Archive.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowDown.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowDownCircle.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowDownLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowDownRight.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowLeftCircle.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowRight.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowRightCircle.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowUp.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowUpCircle.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowUpLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ArrowUpRight.d.ts +1 -1
- package/dist/assets/icons/feather/AtSign.d.ts +1 -1
- package/dist/assets/icons/feather/Award.d.ts +1 -1
- package/dist/assets/icons/feather/BarChart.d.ts +1 -1
- package/dist/assets/icons/feather/BarChart2.d.ts +1 -1
- package/dist/assets/icons/feather/Battery.d.ts +1 -1
- package/dist/assets/icons/feather/BatteryCharging.d.ts +1 -1
- package/dist/assets/icons/feather/Bell.d.ts +1 -1
- package/dist/assets/icons/feather/BellOff.d.ts +1 -1
- package/dist/assets/icons/feather/Bluetooth.d.ts +1 -1
- package/dist/assets/icons/feather/Bold.d.ts +1 -1
- package/dist/assets/icons/feather/Book.d.ts +1 -1
- package/dist/assets/icons/feather/BookOpen.d.ts +1 -1
- package/dist/assets/icons/feather/Bookmark.d.ts +1 -1
- package/dist/assets/icons/feather/Box.d.ts +1 -1
- package/dist/assets/icons/feather/Briefcase.d.ts +1 -1
- package/dist/assets/icons/feather/Calendar.d.ts +1 -1
- package/dist/assets/icons/feather/Camera.d.ts +1 -1
- package/dist/assets/icons/feather/CameraOff.d.ts +1 -1
- package/dist/assets/icons/feather/Cast.d.ts +1 -1
- package/dist/assets/icons/feather/Check.d.ts +1 -1
- package/dist/assets/icons/feather/CheckCircle.d.ts +1 -1
- package/dist/assets/icons/feather/CheckSquare.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronDown.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronRight.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronUp.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronsDown.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronsLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronsRight.d.ts +1 -1
- package/dist/assets/icons/feather/ChevronsUp.d.ts +1 -1
- package/dist/assets/icons/feather/Chrome.d.ts +1 -1
- package/dist/assets/icons/feather/Circle.d.ts +1 -1
- package/dist/assets/icons/feather/Clipboard.d.ts +1 -1
- package/dist/assets/icons/feather/Clock.d.ts +1 -1
- package/dist/assets/icons/feather/Cloud.d.ts +1 -1
- package/dist/assets/icons/feather/CloudDrizzle.d.ts +1 -1
- package/dist/assets/icons/feather/CloudLightning.d.ts +1 -1
- package/dist/assets/icons/feather/CloudOff.d.ts +1 -1
- package/dist/assets/icons/feather/CloudRain.d.ts +1 -1
- package/dist/assets/icons/feather/CloudSnow.d.ts +1 -1
- package/dist/assets/icons/feather/Code.d.ts +1 -1
- package/dist/assets/icons/feather/Codepen.d.ts +1 -1
- package/dist/assets/icons/feather/Codesandbox.d.ts +1 -1
- package/dist/assets/icons/feather/Coffee.d.ts +1 -1
- package/dist/assets/icons/feather/Columns.d.ts +1 -1
- package/dist/assets/icons/feather/Command.d.ts +1 -1
- package/dist/assets/icons/feather/Compass.d.ts +1 -1
- package/dist/assets/icons/feather/Copy.d.ts +1 -1
- package/dist/assets/icons/feather/CornerDownLeft.d.ts +1 -1
- package/dist/assets/icons/feather/CornerDownRight.d.ts +1 -1
- package/dist/assets/icons/feather/CornerLeftDown.d.ts +1 -1
- package/dist/assets/icons/feather/CornerLeftUp.d.ts +1 -1
- package/dist/assets/icons/feather/CornerRightDown.d.ts +1 -1
- package/dist/assets/icons/feather/CornerRightUp.d.ts +1 -1
- package/dist/assets/icons/feather/CornerUpLeft.d.ts +1 -1
- package/dist/assets/icons/feather/CornerUpRight.d.ts +1 -1
- package/dist/assets/icons/feather/Cpu.d.ts +1 -1
- package/dist/assets/icons/feather/CreditCard.d.ts +1 -1
- package/dist/assets/icons/feather/Crop.d.ts +1 -1
- package/dist/assets/icons/feather/Crosshair.d.ts +1 -1
- package/dist/assets/icons/feather/Database.d.ts +1 -1
- package/dist/assets/icons/feather/Delete.d.ts +1 -1
- package/dist/assets/icons/feather/Disc.d.ts +1 -1
- package/dist/assets/icons/feather/Divide.d.ts +1 -1
- package/dist/assets/icons/feather/DivideCircle.d.ts +1 -1
- package/dist/assets/icons/feather/DivideSquare.d.ts +1 -1
- package/dist/assets/icons/feather/DollarSign.d.ts +1 -1
- package/dist/assets/icons/feather/Download.d.ts +1 -1
- package/dist/assets/icons/feather/DownloadCloud.d.ts +1 -1
- package/dist/assets/icons/feather/Dribbble.d.ts +1 -1
- package/dist/assets/icons/feather/Droplet.d.ts +1 -1
- package/dist/assets/icons/feather/Edit.d.ts +1 -1
- package/dist/assets/icons/feather/Edit2.d.ts +1 -1
- package/dist/assets/icons/feather/Edit3.d.ts +1 -1
- package/dist/assets/icons/feather/ExternalLink.d.ts +1 -1
- package/dist/assets/icons/feather/Eye.d.ts +1 -1
- package/dist/assets/icons/feather/EyeOff.d.ts +1 -1
- package/dist/assets/icons/feather/Facebook.d.ts +1 -1
- package/dist/assets/icons/feather/FastForward.d.ts +1 -1
- package/dist/assets/icons/feather/Feather.d.ts +1 -1
- package/dist/assets/icons/feather/Figma.d.ts +1 -1
- package/dist/assets/icons/feather/File.d.ts +1 -1
- package/dist/assets/icons/feather/FileMinus.d.ts +1 -1
- package/dist/assets/icons/feather/FilePlus.d.ts +1 -1
- package/dist/assets/icons/feather/FileText.d.ts +1 -1
- package/dist/assets/icons/feather/Film.d.ts +1 -1
- package/dist/assets/icons/feather/Filter.d.ts +1 -1
- package/dist/assets/icons/feather/Flag.d.ts +1 -1
- package/dist/assets/icons/feather/Folder.d.ts +1 -1
- package/dist/assets/icons/feather/FolderMinus.d.ts +1 -1
- package/dist/assets/icons/feather/FolderPlus.d.ts +1 -1
- package/dist/assets/icons/feather/Framer.d.ts +1 -1
- package/dist/assets/icons/feather/Frown.d.ts +1 -1
- package/dist/assets/icons/feather/Gift.d.ts +1 -1
- package/dist/assets/icons/feather/GitBranch.d.ts +1 -1
- package/dist/assets/icons/feather/GitCommit.d.ts +1 -1
- package/dist/assets/icons/feather/GitMerge.d.ts +1 -1
- package/dist/assets/icons/feather/GitPullRequest.d.ts +1 -1
- package/dist/assets/icons/feather/Github.d.ts +1 -1
- package/dist/assets/icons/feather/Gitlab.d.ts +1 -1
- package/dist/assets/icons/feather/Globe.d.ts +1 -1
- package/dist/assets/icons/feather/Grid.d.ts +1 -1
- package/dist/assets/icons/feather/HardDrive.d.ts +1 -1
- package/dist/assets/icons/feather/Hash.d.ts +1 -1
- package/dist/assets/icons/feather/Headphones.d.ts +1 -1
- package/dist/assets/icons/feather/Heart.d.ts +1 -1
- package/dist/assets/icons/feather/HelpCircle.d.ts +1 -1
- package/dist/assets/icons/feather/Hexagon.d.ts +1 -1
- package/dist/assets/icons/feather/Home.d.ts +1 -1
- package/dist/assets/icons/feather/Image.d.ts +1 -1
- package/dist/assets/icons/feather/Inbox.d.ts +1 -1
- package/dist/assets/icons/feather/Info.d.ts +1 -1
- package/dist/assets/icons/feather/Instagram.d.ts +1 -1
- package/dist/assets/icons/feather/Italic.d.ts +1 -1
- package/dist/assets/icons/feather/Key.d.ts +1 -1
- package/dist/assets/icons/feather/Layers.d.ts +1 -1
- package/dist/assets/icons/feather/Layout.d.ts +1 -1
- package/dist/assets/icons/feather/LifeBuoy.d.ts +1 -1
- package/dist/assets/icons/feather/Link.d.ts +1 -1
- package/dist/assets/icons/feather/Link2.d.ts +1 -1
- package/dist/assets/icons/feather/Linkedin.d.ts +1 -1
- package/dist/assets/icons/feather/List.d.ts +1 -1
- package/dist/assets/icons/feather/Loader.d.ts +1 -1
- package/dist/assets/icons/feather/Lock.d.ts +1 -1
- package/dist/assets/icons/feather/LogIn.d.ts +1 -1
- package/dist/assets/icons/feather/LogOut.d.ts +1 -1
- package/dist/assets/icons/feather/Mail.d.ts +1 -1
- package/dist/assets/icons/feather/Map.d.ts +1 -1
- package/dist/assets/icons/feather/MapPin.d.ts +1 -1
- package/dist/assets/icons/feather/Maximize.d.ts +1 -1
- package/dist/assets/icons/feather/Maximize2.d.ts +1 -1
- package/dist/assets/icons/feather/Meh.d.ts +1 -1
- package/dist/assets/icons/feather/Menu.d.ts +1 -1
- package/dist/assets/icons/feather/MessageCircle.d.ts +1 -1
- package/dist/assets/icons/feather/MessageSquare.d.ts +1 -1
- package/dist/assets/icons/feather/Mic.d.ts +1 -1
- package/dist/assets/icons/feather/MicOff.d.ts +1 -1
- package/dist/assets/icons/feather/Minimize.d.ts +1 -1
- package/dist/assets/icons/feather/Minimize2.d.ts +1 -1
- package/dist/assets/icons/feather/Minus.d.ts +1 -1
- package/dist/assets/icons/feather/MinusCircle.d.ts +1 -1
- package/dist/assets/icons/feather/MinusSquare.d.ts +1 -1
- package/dist/assets/icons/feather/Monitor.d.ts +1 -1
- package/dist/assets/icons/feather/Moon.d.ts +1 -1
- package/dist/assets/icons/feather/MoreHorizontal.d.ts +1 -1
- package/dist/assets/icons/feather/MoreVertical.d.ts +1 -1
- package/dist/assets/icons/feather/MousePointer.d.ts +1 -1
- package/dist/assets/icons/feather/Move.d.ts +1 -1
- package/dist/assets/icons/feather/Music.d.ts +1 -1
- package/dist/assets/icons/feather/Navigation.d.ts +1 -1
- package/dist/assets/icons/feather/Navigation2.d.ts +1 -1
- package/dist/assets/icons/feather/Octagon.d.ts +1 -1
- package/dist/assets/icons/feather/Package.d.ts +1 -1
- package/dist/assets/icons/feather/Paperclip.d.ts +1 -1
- package/dist/assets/icons/feather/Pause.d.ts +1 -1
- package/dist/assets/icons/feather/PauseCircle.d.ts +1 -1
- package/dist/assets/icons/feather/PenTool.d.ts +1 -1
- package/dist/assets/icons/feather/Percent.d.ts +1 -1
- package/dist/assets/icons/feather/Phone.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneCall.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneForwarded.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneIncoming.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneMissed.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneOff.d.ts +1 -1
- package/dist/assets/icons/feather/PhoneOutgoing.d.ts +1 -1
- package/dist/assets/icons/feather/PieChart.d.ts +1 -1
- package/dist/assets/icons/feather/Play.d.ts +1 -1
- package/dist/assets/icons/feather/PlayCircle.d.ts +1 -1
- package/dist/assets/icons/feather/Plus.d.ts +1 -1
- package/dist/assets/icons/feather/PlusCircle.d.ts +1 -1
- package/dist/assets/icons/feather/PlusSquare.d.ts +1 -1
- package/dist/assets/icons/feather/Pocket.d.ts +1 -1
- package/dist/assets/icons/feather/Power.d.ts +1 -1
- package/dist/assets/icons/feather/Printer.d.ts +1 -1
- package/dist/assets/icons/feather/Radio.d.ts +1 -1
- package/dist/assets/icons/feather/RefreshCcw.d.ts +1 -1
- package/dist/assets/icons/feather/RefreshCw.d.ts +1 -1
- package/dist/assets/icons/feather/Repeat.d.ts +1 -1
- package/dist/assets/icons/feather/Rewind.d.ts +1 -1
- package/dist/assets/icons/feather/RotateCcw.d.ts +1 -1
- package/dist/assets/icons/feather/RotateCw.d.ts +1 -1
- package/dist/assets/icons/feather/Rss.d.ts +1 -1
- package/dist/assets/icons/feather/Save.d.ts +1 -1
- package/dist/assets/icons/feather/Scissors.d.ts +1 -1
- package/dist/assets/icons/feather/Search.d.ts +1 -1
- package/dist/assets/icons/feather/Send.d.ts +1 -1
- package/dist/assets/icons/feather/Server.d.ts +1 -1
- package/dist/assets/icons/feather/Settings.d.ts +1 -1
- package/dist/assets/icons/feather/Share.d.ts +1 -1
- package/dist/assets/icons/feather/Share2.d.ts +1 -1
- package/dist/assets/icons/feather/Shield.d.ts +1 -1
- package/dist/assets/icons/feather/ShieldOff.d.ts +1 -1
- package/dist/assets/icons/feather/ShoppingBag.d.ts +1 -1
- package/dist/assets/icons/feather/ShoppingCart.d.ts +1 -1
- package/dist/assets/icons/feather/Shuffle.d.ts +1 -1
- package/dist/assets/icons/feather/Sidebar.d.ts +1 -1
- package/dist/assets/icons/feather/SkipBack.d.ts +1 -1
- package/dist/assets/icons/feather/SkipForward.d.ts +1 -1
- package/dist/assets/icons/feather/Slack.d.ts +1 -1
- package/dist/assets/icons/feather/Slash.d.ts +1 -1
- package/dist/assets/icons/feather/Sliders.d.ts +1 -1
- package/dist/assets/icons/feather/Smartphone.d.ts +1 -1
- package/dist/assets/icons/feather/Smile.d.ts +1 -1
- package/dist/assets/icons/feather/Speaker.d.ts +1 -1
- package/dist/assets/icons/feather/Square.d.ts +1 -1
- package/dist/assets/icons/feather/Star.d.ts +1 -1
- package/dist/assets/icons/feather/StopCircle.d.ts +1 -1
- package/dist/assets/icons/feather/Sun.d.ts +1 -1
- package/dist/assets/icons/feather/Sunrise.d.ts +1 -1
- package/dist/assets/icons/feather/Sunset.d.ts +1 -1
- package/dist/assets/icons/feather/Table.d.ts +1 -1
- package/dist/assets/icons/feather/Tablet.d.ts +1 -1
- package/dist/assets/icons/feather/Tag.d.ts +1 -1
- package/dist/assets/icons/feather/Target.d.ts +1 -1
- package/dist/assets/icons/feather/Terminal.d.ts +1 -1
- package/dist/assets/icons/feather/Thermometer.d.ts +1 -1
- package/dist/assets/icons/feather/ThumbsDown.d.ts +1 -1
- package/dist/assets/icons/feather/ThumbsUp.d.ts +1 -1
- package/dist/assets/icons/feather/ToggleLeft.d.ts +1 -1
- package/dist/assets/icons/feather/ToggleRight.d.ts +1 -1
- package/dist/assets/icons/feather/Tool.d.ts +1 -1
- package/dist/assets/icons/feather/Trash.d.ts +1 -1
- package/dist/assets/icons/feather/Trash2.d.ts +1 -1
- package/dist/assets/icons/feather/Trello.d.ts +1 -1
- package/dist/assets/icons/feather/TrendingDown.d.ts +1 -1
- package/dist/assets/icons/feather/TrendingUp.d.ts +1 -1
- package/dist/assets/icons/feather/Triangle.d.ts +1 -1
- package/dist/assets/icons/feather/Truck.d.ts +1 -1
- package/dist/assets/icons/feather/Tv.d.ts +1 -1
- package/dist/assets/icons/feather/Twitch.d.ts +1 -1
- package/dist/assets/icons/feather/Twitter.d.ts +1 -1
- package/dist/assets/icons/feather/Type.d.ts +1 -1
- package/dist/assets/icons/feather/Umbrella.d.ts +1 -1
- package/dist/assets/icons/feather/Underline.d.ts +1 -1
- package/dist/assets/icons/feather/Unlock.d.ts +1 -1
- package/dist/assets/icons/feather/Upload.d.ts +1 -1
- package/dist/assets/icons/feather/UploadCloud.d.ts +1 -1
- package/dist/assets/icons/feather/User.d.ts +1 -1
- package/dist/assets/icons/feather/UserCheck.d.ts +1 -1
- package/dist/assets/icons/feather/UserMinus.d.ts +1 -1
- package/dist/assets/icons/feather/UserPlus.d.ts +1 -1
- package/dist/assets/icons/feather/UserX.d.ts +1 -1
- package/dist/assets/icons/feather/Users.d.ts +1 -1
- package/dist/assets/icons/feather/Video.d.ts +1 -1
- package/dist/assets/icons/feather/VideoOff.d.ts +1 -1
- package/dist/assets/icons/feather/Voicemail.d.ts +1 -1
- package/dist/assets/icons/feather/Volume.d.ts +1 -1
- package/dist/assets/icons/feather/Volume1.d.ts +1 -1
- package/dist/assets/icons/feather/Volume2.d.ts +1 -1
- package/dist/assets/icons/feather/VolumeX.d.ts +1 -1
- package/dist/assets/icons/feather/Watch.d.ts +1 -1
- package/dist/assets/icons/feather/Wifi.d.ts +1 -1
- package/dist/assets/icons/feather/WifiOff.d.ts +1 -1
- package/dist/assets/icons/feather/Wind.d.ts +1 -1
- package/dist/assets/icons/feather/X.d.ts +1 -1
- package/dist/assets/icons/feather/XCircle.d.ts +1 -1
- package/dist/assets/icons/feather/XOctagon.d.ts +1 -1
- package/dist/assets/icons/feather/XSquare.d.ts +1 -1
- package/dist/assets/icons/feather/Youtube.d.ts +1 -1
- package/dist/assets/icons/feather/Zap.d.ts +1 -1
- package/dist/assets/icons/feather/ZapOff.d.ts +1 -1
- package/dist/assets/icons/feather/ZoomIn.d.ts +1 -1
- package/dist/assets/icons/feather/ZoomOut.d.ts +1 -1
- package/dist/assets/icons/feather/index.d.ts +287 -287
- package/dist/assets/icons/fontawesome/index.d.ts +2276 -0
- package/dist/assets/icons/fontawesome/regular/index.d.ts +11 -0
- package/dist/assets/icons/fontawesome/solid/index.d.ts +11 -0
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/interfaces.d.ts +18 -29
- package/dist/components/Icon/styled.d.ts +5 -11
- package/dist/components/Input/components/Input/interfaces.d.ts +5 -1
- package/dist/components/Menu/interfaces.d.ts +6 -2
- package/dist/components/Popup/hooks/fallbackPlacements/index.d.ts +2 -2
- package/dist/components/Popup/styles.d.ts +2 -2
- package/dist/components/Popup/types.d.ts +3 -3
- package/dist/functions/inflections.d.ts +47 -0
- package/dist/index.d.mts +2716 -376
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3463 -2487
- package/dist/index.mjs +3681 -2706
- package/dist/interfaces.d.ts +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as FontAwesome from '@fortawesome/free-regular-svg-icons';
|
|
2
|
+
import type { CamelToKebab } from '../../../../interfaces';
|
|
3
|
+
type FontAwesomeRegularIcons = typeof FontAwesome;
|
|
4
|
+
type FontAwesomeSourceIcon = keyof {
|
|
5
|
+
[K in keyof FontAwesomeRegularIcons as FontAwesomeRegularIcons[K] extends FontAwesome.IconDefinition ? K : never]: FontAwesomeRegularIcons[K];
|
|
6
|
+
};
|
|
7
|
+
type FontAwesomeRegularIcon = keyof {
|
|
8
|
+
[K in FontAwesomeSourceIcon as CamelToKebab<K extends `fa${infer Rest}` ? `${Rest}-outline` : `${K}-outline`>]: K;
|
|
9
|
+
};
|
|
10
|
+
declare const icons: { [K in FontAwesomeRegularIcon]: FontAwesome.IconDefinition; };
|
|
11
|
+
export default icons;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as FontAwesome from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import type { CamelToKebab } from '../../../../interfaces';
|
|
3
|
+
type FontAwesomeSolidIcons = typeof FontAwesome;
|
|
4
|
+
type FontAwesomeSourceIcon = keyof {
|
|
5
|
+
[K in keyof FontAwesomeSolidIcons as FontAwesomeSolidIcons[K] extends FontAwesome.IconDefinition ? K : never]: FontAwesomeSolidIcons[K];
|
|
6
|
+
};
|
|
7
|
+
type FontAwesomeSolidIcon = keyof {
|
|
8
|
+
[K in FontAwesomeSourceIcon as CamelToKebab<K extends `fa${infer Rest}` ? Rest : K>]: K;
|
|
9
|
+
};
|
|
10
|
+
declare const icons: { [K in FontAwesomeSolidIcon]: FontAwesome.IconDefinition; };
|
|
11
|
+
export default icons;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const Icon: (
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Icon: React.ForwardRefExoticComponent<(Omit<import("./interfaces").FontAwesomeIcon, "ref"> | Omit<import("./interfaces").FeatherIcon, "ref"> | Omit<import("./interfaces").SVGIcon, "ref">) & React.RefAttributes<SVGSVGElement>>;
|
|
3
3
|
export default Icon;
|
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type
|
|
3
|
-
import type {
|
|
2
|
+
import type fontawesome from '../../assets/icons/fontawesome';
|
|
3
|
+
import type { ThemeInterface } from '../../interfaces';
|
|
4
4
|
import type feather from '.././../assets/icons/feather';
|
|
5
|
-
export
|
|
6
|
-
color?:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
type: '
|
|
12
|
-
icon:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
export type CommonProps = Omit<React.SVGProps<SVGSVGElement>, 'children' | 'mask' | 'transform' | 'color'> & {
|
|
6
|
+
color?: string | Parameters<ThemeInterface['getColor']>;
|
|
7
|
+
pointer?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type FontAwesomeIcon = CommonProps & {
|
|
10
|
+
/** @see https://fontawesome.com/search?ic=free-collection */
|
|
11
|
+
type: 'fontawesome';
|
|
12
|
+
icon: keyof typeof fontawesome;
|
|
13
|
+
};
|
|
14
|
+
export type FeatherIcon = CommonProps & {
|
|
15
|
+
/** @see https://feathericons.com */
|
|
16
16
|
type: 'feather';
|
|
17
17
|
icon: keyof typeof feather;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export interface SVGIcon extends CommonProps {
|
|
18
|
+
};
|
|
19
|
+
export type SVGIcon = CommonProps & {
|
|
22
20
|
type: 'svg';
|
|
23
|
-
icon: React.FunctionComponent<React.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
export interface JSXIcon {
|
|
28
|
-
color?: typeof colors | string;
|
|
29
|
-
type: 'jsx';
|
|
30
|
-
icon: JSX.Element;
|
|
31
|
-
width: string | number;
|
|
32
|
-
}
|
|
33
|
-
export type ExtendsCommon = SemanticIcon | FeatherIcon | SVGIcon;
|
|
34
|
-
export type IconProps = SemanticIcon | FeatherIcon | SVGIcon | JSXIcon;
|
|
21
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
22
|
+
};
|
|
23
|
+
export type IconProps = FontAwesomeIcon | FeatherIcon | SVGIcon;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
interface SemanticIconProps {
|
|
3
|
-
$fontcolor: string;
|
|
4
|
-
$width?: string | number;
|
|
5
|
-
$height?: string | number;
|
|
6
|
-
}
|
|
7
|
-
export declare const SemanticIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("semantic-ui-react").IconProps, "ref"> & import("react").RefAttributes<Icon>, SemanticIconProps>> & string & Omit<typeof Icon, keyof import("react").Component<any, {}, any>>;
|
|
8
|
-
interface SVGContainerProps extends Omit<React.HtmlHTMLAttributes<HTMLDivElement>, 'color'> {
|
|
9
|
-
$color: string;
|
|
10
|
-
$strokeWidth?: string;
|
|
1
|
+
type SVGContainerProps = {
|
|
11
2
|
$pointer: boolean;
|
|
12
|
-
|
|
3
|
+
$hasWidth: boolean;
|
|
4
|
+
$hasHeight: boolean;
|
|
5
|
+
$hasStrokeWidth: boolean;
|
|
6
|
+
};
|
|
13
7
|
export declare const SVGContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, SVGContainerProps>> & string;
|
|
14
8
|
export {};
|
|
@@ -9,7 +9,11 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
mask?: Mask;
|
|
11
11
|
icon?: {
|
|
12
|
-
icon: IconProps
|
|
12
|
+
icon: IconProps | {
|
|
13
|
+
type: 'jsx';
|
|
14
|
+
icon: JSX.Element;
|
|
15
|
+
width?: string | number;
|
|
16
|
+
};
|
|
13
17
|
position?: 'left' | 'right';
|
|
14
18
|
};
|
|
15
19
|
clearable?: boolean | (() => void);
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { PopupProps } from 'semantic-ui-react';
|
|
3
2
|
import type { Borders, GenericObject, ReactNode, SpacingOrZero, Spacings } from '../../interfaces';
|
|
4
3
|
import type { AbsoluteContainerProps } from '../AbsoluteContainer/interfaces';
|
|
4
|
+
import type { PopupProps } from '../Popup/types';
|
|
5
5
|
import type { ScrollContainerProps } from '../ScrollContainer/interfaces';
|
|
6
6
|
/** funcao que fara a validacao da regra, deve retornar true caso passe na validacao, e false ou o conteudo do popup caso contrario */
|
|
7
|
-
type Rule<T extends GenericObject = GenericObject> = (index: number, data: T) => boolean |
|
|
7
|
+
type Rule<T extends GenericObject = GenericObject> = (index: number, data: T) => boolean | {
|
|
8
|
+
on?: PopupProps['on'];
|
|
9
|
+
position?: PopupProps['position'];
|
|
10
|
+
content: PopupProps['content'];
|
|
11
|
+
};
|
|
8
12
|
export type MenuOptionLabelProps<T extends GenericObject = GenericObject> = {
|
|
9
13
|
delimiter?: boolean;
|
|
10
14
|
keepOpen?: boolean;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
declare const useFallbackPlacements: (props: PopupProps) =>
|
|
1
|
+
import type { PopupPosition, PopupProps } from '../../types';
|
|
2
|
+
declare const useFallbackPlacements: (props: PopupProps) => PopupPosition[];
|
|
3
3
|
export default useFallbackPlacements;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { PopupProps } from './types';
|
|
2
2
|
export declare const TooltipArrow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
-
$placement: PopupProps["
|
|
3
|
+
$placement: PopupProps["position"];
|
|
4
4
|
$arrow?: Exclude<PopupProps["arrow"], "none">;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const TooltipSurface: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
|
-
$placement: PopupProps["
|
|
7
|
+
$placement: PopupProps["position"];
|
|
8
8
|
$background?: PopupProps["background"];
|
|
9
9
|
}>> & string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type PopupProps<T extends React.ElementType = 'div'> = {
|
|
2
2
|
content: React.FunctionComponent;
|
|
3
|
-
|
|
3
|
+
position: PopupPosition;
|
|
4
4
|
on?: 'hover' | 'click';
|
|
5
5
|
triggerType?: T;
|
|
6
6
|
triggerProps?: React.ComponentPropsWithRef<T>;
|
|
@@ -12,7 +12,7 @@ export type PopupProps<T extends React.ElementType = 'div'> = {
|
|
|
12
12
|
closeOnClip?: boolean;
|
|
13
13
|
open?: boolean;
|
|
14
14
|
setOpen?: (open: boolean) => void;
|
|
15
|
-
fallbackPlacements?:
|
|
15
|
+
fallbackPlacements?: PopupPosition[];
|
|
16
16
|
zIndex?: number;
|
|
17
17
|
};
|
|
18
|
-
export type
|
|
18
|
+
export type PopupPosition = 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export type KebabToCamel<T extends string> = {
|
|
2
|
+
[S in T]: S extends `${infer H}-${infer T}` ? `${H}${Capitalize<KebabToCamel<T>>}` : S;
|
|
3
|
+
}[T];
|
|
4
|
+
export type KebabToPascal<T extends string> = {
|
|
5
|
+
[S in T]: Capitalize<KebabToCamel<S>>;
|
|
6
|
+
}[T];
|
|
7
|
+
export type KebabToSnake<T extends string> = {
|
|
8
|
+
[S in T]: S extends `${infer H}-${infer T}` ? `${H}_${KebabToSnake<T>}` : S;
|
|
9
|
+
}[T];
|
|
10
|
+
export type CamelToKebab<T extends string> = {
|
|
11
|
+
[S in T]: S extends `${infer F}${infer R}` ? R extends Uncapitalize<R> ? `${Lowercase<F>}${CamelToKebab<R>}` : `${Lowercase<F>}-${CamelToKebab<Uncapitalize<R>>}` : S;
|
|
12
|
+
}[T];
|
|
13
|
+
export type CamelToPascal<T extends string> = KebabToPascal<CamelToKebab<T>>;
|
|
14
|
+
export type CamelToSnake<T extends string> = KebabToSnake<CamelToKebab<T>>;
|
|
15
|
+
export type PascalToKebab<T extends string> = {
|
|
16
|
+
[S in T]: CamelToKebab<Uncapitalize<S>>;
|
|
17
|
+
}[T];
|
|
18
|
+
export type PascalToCamel<T extends string> = KebabToCamel<PascalToKebab<T>>;
|
|
19
|
+
export type PascalToSnake<T extends string> = KebabToSnake<PascalToKebab<T>>;
|
|
20
|
+
export type SnakeToKebab<T extends string> = {
|
|
21
|
+
[S in T]: S extends `${infer H}_${infer T}` ? `${Lowercase<H>}-${SnakeToKebab<T>}` : Lowercase<S>;
|
|
22
|
+
}[T];
|
|
23
|
+
export type SnakeToPascal<T extends string> = KebabToPascal<SnakeToKebab<T>>;
|
|
24
|
+
export type SnakeToCamel<T extends string> = KebabToCamel<SnakeToKebab<T>>;
|
|
25
|
+
declare const Inflector: {
|
|
26
|
+
readonly Kebab: {
|
|
27
|
+
readonly toCamel: <T extends string>(str: T) => KebabToCamel<T>;
|
|
28
|
+
readonly toPascal: <T extends string>(str: T) => KebabToPascal<T>;
|
|
29
|
+
readonly toSnake: <T extends string>(str: T) => KebabToSnake<T>;
|
|
30
|
+
};
|
|
31
|
+
readonly Camel: {
|
|
32
|
+
readonly toKebab: <T extends string>(str: T) => CamelToKebab<T>;
|
|
33
|
+
readonly toPascal: <T extends string>(str: T) => CamelToPascal<T>;
|
|
34
|
+
readonly toSnake: <T extends string>(str: T) => CamelToSnake<T>;
|
|
35
|
+
};
|
|
36
|
+
readonly Pascal: {
|
|
37
|
+
readonly toKebab: <T extends string>(str: T) => PascalToKebab<T>;
|
|
38
|
+
readonly toCamel: <T extends string>(str: T) => PascalToCamel<T>;
|
|
39
|
+
readonly toSnake: <T extends string>(str: T) => PascalToSnake<T>;
|
|
40
|
+
};
|
|
41
|
+
readonly Snake: {
|
|
42
|
+
readonly toKebab: <T extends string>(str: T) => SnakeToKebab<T>;
|
|
43
|
+
readonly toPascal: <T extends string>(str: T) => SnakeToPascal<T>;
|
|
44
|
+
readonly toCamel: <T extends string>(str: T) => SnakeToCamel<T>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default Inflector;
|