@sensoro-design/icons 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -0
- package/es/components/Context.d.ts +9 -0
- package/es/components/Context.jsx +3 -0
- package/es/components/Icon.d.ts +20 -0
- package/es/components/Icon.jsx +74 -0
- package/es/components/IconBase.d.ts +24 -0
- package/es/components/IconBase.jsx +62 -0
- package/es/components/IconFont.d.ts +12 -0
- package/es/components/IconFont.jsx +76 -0
- package/es/components/SensoroIcon.d.ts +16 -0
- package/es/components/SensoroIcon.jsx +53 -0
- package/es/components/twoTonePrimaryColor.d.ts +3 -0
- package/es/components/twoTonePrimaryColor.js +16 -0
- package/es/hooks/useInsertStyles.d.ts +1 -0
- package/es/hooks/useInsertStyles.js +15 -0
- package/es/icons/AccountBookFilled.d.ts +4 -0
- package/es/icons/AccountBookFilled.jsx +7 -0
- package/es/icons/AccountBookOutlined.d.ts +4 -0
- package/es/icons/AccountBookOutlined.jsx +7 -0
- package/es/icons/AccountBookTwoTone.d.ts +4 -0
- package/es/icons/AccountBookTwoTone.jsx +7 -0
- package/es/icons/AimOutlined.d.ts +4 -0
- package/es/icons/AimOutlined.jsx +7 -0
- package/es/icons/AircircuitBreakerOutlined.d.ts +4 -0
- package/es/icons/AircircuitBreakerOutlined.jsx +7 -0
- package/es/icons/AlarmHostOutlined.d.ts +4 -0
- package/es/icons/AlarmHostOutlined.jsx +7 -0
- package/es/icons/AlertCameraOutlined.d.ts +4 -0
- package/es/icons/AlertCameraOutlined.jsx +7 -0
- package/es/icons/AlertFilled.d.ts +4 -0
- package/es/icons/AlertFilled.jsx +7 -0
- package/es/icons/AlertOutlined.d.ts +4 -0
- package/es/icons/AlertOutlined.jsx +7 -0
- package/es/icons/AlignCenterOutlined.d.ts +4 -0
- package/es/icons/AlignCenterOutlined.jsx +7 -0
- package/es/icons/AlignLeftOutlined.d.ts +4 -0
- package/es/icons/AlignLeftOutlined.jsx +7 -0
- package/es/icons/AlignRightOutlined.d.ts +4 -0
- package/es/icons/AlignRightOutlined.jsx +7 -0
- package/es/icons/AppstoreAddOutlined.d.ts +4 -0
- package/es/icons/AppstoreAddOutlined.jsx +7 -0
- package/es/icons/AppstoreFilled.d.ts +4 -0
- package/es/icons/AppstoreFilled.jsx +7 -0
- package/es/icons/AppstoreOutlined.d.ts +4 -0
- package/es/icons/AppstoreOutlined.jsx +7 -0
- package/es/icons/AudibleAlarmHostOutlined.d.ts +4 -0
- package/es/icons/AudibleAlarmHostOutlined.jsx +7 -0
- package/es/icons/AudibleAlarmOutlined.d.ts +4 -0
- package/es/icons/AudibleAlarmOutlined.jsx +7 -0
- package/es/icons/BlockOutlined.d.ts +4 -0
- package/es/icons/BlockOutlined.jsx +7 -0
- package/es/icons/CameraFilled.d.ts +4 -0
- package/es/icons/CameraFilled.jsx +7 -0
- package/es/icons/CameraOutlined.d.ts +4 -0
- package/es/icons/CameraOutlined.jsx +7 -0
- package/es/icons/CarFilled.d.ts +4 -0
- package/es/icons/CarFilled.jsx +7 -0
- package/es/icons/CarOutlined.d.ts +4 -0
- package/es/icons/CarOutlined.jsx +7 -0
- package/es/icons/Ch4Outlined.d.ts +4 -0
- package/es/icons/Ch4Outlined.jsx +7 -0
- package/es/icons/CheckCircleFilled.d.ts +4 -0
- package/es/icons/CheckCircleFilled.jsx +7 -0
- package/es/icons/CheckCircleOutlined.d.ts +4 -0
- package/es/icons/CheckCircleOutlined.jsx +7 -0
- package/es/icons/CheckOutlined.d.ts +4 -0
- package/es/icons/CheckOutlined.jsx +7 -0
- package/es/icons/CheckSquareFilled.d.ts +4 -0
- package/es/icons/CheckSquareFilled.jsx +7 -0
- package/es/icons/CheckSquareOutlined.d.ts +4 -0
- package/es/icons/CheckSquareOutlined.jsx +7 -0
- package/es/icons/ClearOutlined.d.ts +4 -0
- package/es/icons/ClearOutlined.jsx +7 -0
- package/es/icons/CloseCircleFilled.d.ts +4 -0
- package/es/icons/CloseCircleFilled.jsx +7 -0
- package/es/icons/CloseCircleOutlined.d.ts +4 -0
- package/es/icons/CloseCircleOutlined.jsx +7 -0
- package/es/icons/CloseOutlined.d.ts +4 -0
- package/es/icons/CloseOutlined.jsx +7 -0
- package/es/icons/CloseSquareFilled.d.ts +4 -0
- package/es/icons/CloseSquareFilled.jsx +7 -0
- package/es/icons/CloseSquareOutlined.d.ts +4 -0
- package/es/icons/CloseSquareOutlined.jsx +7 -0
- package/es/icons/Co2Outlined.d.ts +4 -0
- package/es/icons/Co2Outlined.jsx +7 -0
- package/es/icons/CoOutlined.d.ts +4 -0
- package/es/icons/CoOutlined.jsx +7 -0
- package/es/icons/CompressOutlined.d.ts +4 -0
- package/es/icons/CompressOutlined.jsx +7 -0
- package/es/icons/ControllerOutlined.d.ts +4 -0
- package/es/icons/ControllerOutlined.jsx +7 -0
- package/es/icons/DeleteOutlined.d.ts +4 -0
- package/es/icons/DeleteOutlined.jsx +7 -0
- package/es/icons/DomeCameraOutlined.d.ts +4 -0
- package/es/icons/DomeCameraOutlined.jsx +7 -0
- package/es/icons/DoorLockOutlined.d.ts +4 -0
- package/es/icons/DoorLockOutlined.jsx +7 -0
- package/es/icons/DownOutlined.d.ts +4 -0
- package/es/icons/DownOutlined.jsx +7 -0
- package/es/icons/DroneOutlined.d.ts +4 -0
- package/es/icons/DroneOutlined.jsx +7 -0
- package/es/icons/ElectricalFireOutlined.d.ts +4 -0
- package/es/icons/ElectricalFireOutlined.jsx +7 -0
- package/es/icons/EllipsisOutlined.d.ts +4 -0
- package/es/icons/EllipsisOutlined.jsx +7 -0
- package/es/icons/ExclamationCircleFilled.d.ts +4 -0
- package/es/icons/ExclamationCircleFilled.jsx +7 -0
- package/es/icons/ExpandOutlined.d.ts +4 -0
- package/es/icons/ExpandOutlined.jsx +7 -0
- package/es/icons/EyeFilled.d.ts +4 -0
- package/es/icons/EyeFilled.jsx +7 -0
- package/es/icons/EyeInvisibleFilled.d.ts +4 -0
- package/es/icons/EyeInvisibleFilled.jsx +7 -0
- package/es/icons/EyeInvisibleOutlined.d.ts +4 -0
- package/es/icons/EyeInvisibleOutlined.jsx +7 -0
- package/es/icons/EyeOutlined.d.ts +4 -0
- package/es/icons/EyeOutlined.jsx +7 -0
- package/es/icons/FaceCameraOutlined.d.ts +4 -0
- package/es/icons/FaceCameraOutlined.jsx +7 -0
- package/es/icons/FireCameraOutlined.d.ts +4 -0
- package/es/icons/FireCameraOutlined.jsx +7 -0
- package/es/icons/FireHostOutlined.d.ts +4 -0
- package/es/icons/FireHostOutlined.jsx +7 -0
- package/es/icons/FireHydrantOutlined.d.ts +4 -0
- package/es/icons/FireHydrantOutlined.jsx +7 -0
- package/es/icons/FireHydraulicsOutlined.d.ts +4 -0
- package/es/icons/FireHydraulicsOutlined.jsx +7 -0
- package/es/icons/FormOutlined.d.ts +4 -0
- package/es/icons/FormOutlined.jsx +7 -0
- package/es/icons/FrownFilled.d.ts +4 -0
- package/es/icons/FrownFilled.jsx +7 -0
- package/es/icons/FrownOutlined.d.ts +4 -0
- package/es/icons/FrownOutlined.jsx +7 -0
- package/es/icons/FullTargetCameraOutlined.d.ts +4 -0
- package/es/icons/FullTargetCameraOutlined.jsx +7 -0
- package/es/icons/FullTargetOutlined.d.ts +4 -0
- package/es/icons/FullTargetOutlined.jsx +7 -0
- package/es/icons/GasSensorControllerOutlined.d.ts +4 -0
- package/es/icons/GasSensorControllerOutlined.jsx +7 -0
- package/es/icons/GasSensorOutlined.d.ts +4 -0
- package/es/icons/GasSensorOutlined.jsx +7 -0
- package/es/icons/GatewayOutlined.d.ts +4 -0
- package/es/icons/GatewayOutlined.jsx +7 -0
- package/es/icons/HomeOutlined.d.ts +4 -0
- package/es/icons/HomeOutlined.jsx +7 -0
- package/es/icons/HumanTrafficVideoOutlined.d.ts +4 -0
- package/es/icons/HumanTrafficVideoOutlined.jsx +7 -0
- package/es/icons/HydrolabOutlined.d.ts +4 -0
- package/es/icons/HydrolabOutlined.jsx +7 -0
- package/es/icons/IdcardFilled.d.ts +4 -0
- package/es/icons/IdcardFilled.jsx +7 -0
- package/es/icons/IdcardOutlined.d.ts +4 -0
- package/es/icons/IdcardOutlined.jsx +7 -0
- package/es/icons/InfraredHostOutlined.d.ts +4 -0
- package/es/icons/InfraredHostOutlined.jsx +7 -0
- package/es/icons/InfraredOutlined.d.ts +4 -0
- package/es/icons/InfraredOutlined.jsx +7 -0
- package/es/icons/IntelligentAccessOutlined.d.ts +4 -0
- package/es/icons/IntelligentAccessOutlined.jsx +7 -0
- package/es/icons/KeyOutlined.d.ts +4 -0
- package/es/icons/KeyOutlined.jsx +7 -0
- package/es/icons/LeakingOutlined.d.ts +4 -0
- package/es/icons/LeakingOutlined.jsx +7 -0
- package/es/icons/LeftOutlined.d.ts +4 -0
- package/es/icons/LeftOutlined.jsx +7 -0
- package/es/icons/LinsAccessOutlined.d.ts +4 -0
- package/es/icons/LinsAccessOutlined.jsx +7 -0
- package/es/icons/LockFilled.d.ts +4 -0
- package/es/icons/LockFilled.jsx +7 -0
- package/es/icons/LockOutlined.d.ts +4 -0
- package/es/icons/LockOutlined.jsx +7 -0
- package/es/icons/LpgOutlined.d.ts +4 -0
- package/es/icons/LpgOutlined.jsx +7 -0
- package/es/icons/ManholeCoverOutlined.d.ts +4 -0
- package/es/icons/ManholeCoverOutlined.jsx +7 -0
- package/es/icons/ManualAlarmCircleOutlined.d.ts +4 -0
- package/es/icons/ManualAlarmCircleOutlined.jsx +7 -0
- package/es/icons/ManualAlarmSquareOutlined.d.ts +4 -0
- package/es/icons/ManualAlarmSquareOutlined.jsx +7 -0
- package/es/icons/MenuFoldOutlined.d.ts +4 -0
- package/es/icons/MenuFoldOutlined.jsx +7 -0
- package/es/icons/MenuUnfoldOutlined.d.ts +4 -0
- package/es/icons/MenuUnfoldOutlined.jsx +7 -0
- package/es/icons/MinusCircleFilled.d.ts +4 -0
- package/es/icons/MinusCircleFilled.jsx +7 -0
- package/es/icons/MinusCircleOutlined.d.ts +4 -0
- package/es/icons/MinusCircleOutlined.jsx +7 -0
- package/es/icons/MinusOutlined.d.ts +4 -0
- package/es/icons/MinusOutlined.jsx +7 -0
- package/es/icons/MinusSquareFilled.d.ts +4 -0
- package/es/icons/MinusSquareFilled.jsx +7 -0
- package/es/icons/MinusSquareOutlined.d.ts +4 -0
- package/es/icons/MinusSquareOutlined.jsx +7 -0
- package/es/icons/MoreOutlined.d.ts +4 -0
- package/es/icons/MoreOutlined.jsx +7 -0
- package/es/icons/Nh3Outlined.d.ts +4 -0
- package/es/icons/Nh3Outlined.jsx +7 -0
- package/es/icons/O2Outlined.d.ts +4 -0
- package/es/icons/O2Outlined.jsx +7 -0
- package/es/icons/ParkingLotOutlined.d.ts +4 -0
- package/es/icons/ParkingLotOutlined.jsx +7 -0
- package/es/icons/PauseCircleFilled.d.ts +4 -0
- package/es/icons/PauseCircleFilled.jsx +7 -0
- package/es/icons/PauseCircleOutlined.d.ts +4 -0
- package/es/icons/PauseCircleOutlined.jsx +7 -0
- package/es/icons/PauseOutlined.d.ts +4 -0
- package/es/icons/PauseOutlined.jsx +7 -0
- package/es/icons/PayCircleFilled.d.ts +4 -0
- package/es/icons/PayCircleFilled.jsx +7 -0
- package/es/icons/PayCircleOutlined.d.ts +4 -0
- package/es/icons/PayCircleOutlined.jsx +7 -0
- package/es/icons/PersonCameraOutlined.d.ts +4 -0
- package/es/icons/PersonCameraOutlined.jsx +7 -0
- package/es/icons/PlayCircleFilled.d.ts +4 -0
- package/es/icons/PlayCircleFilled.jsx +7 -0
- package/es/icons/PlayCircleOutlined.d.ts +4 -0
- package/es/icons/PlayCircleOutlined.jsx +7 -0
- package/es/icons/PlayOutlined.d.ts +4 -0
- package/es/icons/PlayOutlined.jsx +7 -0
- package/es/icons/PlusCircleFilled.d.ts +4 -0
- package/es/icons/PlusCircleFilled.jsx +7 -0
- package/es/icons/PlusCircleOutlined.d.ts +4 -0
- package/es/icons/PlusCircleOutlined.jsx +7 -0
- package/es/icons/PlusOutlined.d.ts +4 -0
- package/es/icons/PlusOutlined.jsx +7 -0
- package/es/icons/PlusSquareFilled.d.ts +4 -0
- package/es/icons/PlusSquareFilled.jsx +7 -0
- package/es/icons/PmOutlined.d.ts +4 -0
- package/es/icons/PmOutlined.jsx +7 -0
- package/es/icons/RightOutlined.d.ts +4 -0
- package/es/icons/RightOutlined.jsx +7 -0
- package/es/icons/RotationCloseOutlined.d.ts +4 -0
- package/es/icons/RotationCloseOutlined.jsx +7 -0
- package/es/icons/RotationOutlined.d.ts +4 -0
- package/es/icons/RotationOutlined.jsx +7 -0
- package/es/icons/SettingOutlined.d.ts +4 -0
- package/es/icons/SettingOutlined.jsx +7 -0
- package/es/icons/SleepOutlined.d.ts +4 -0
- package/es/icons/SleepOutlined.jsx +7 -0
- package/es/icons/SmartBoxOutlined.d.ts +4 -0
- package/es/icons/SmartBoxOutlined.jsx +7 -0
- package/es/icons/SmartDoorLockOutlined.d.ts +4 -0
- package/es/icons/SmartDoorLockOutlined.jsx +7 -0
- package/es/icons/SmartLightPoleOutlined.d.ts +4 -0
- package/es/icons/SmartLightPoleOutlined.jsx +7 -0
- package/es/icons/SmartWatchOutlined.d.ts +4 -0
- package/es/icons/SmartWatchOutlined.jsx +7 -0
- package/es/icons/SmartWaterMeterOutlined.d.ts +4 -0
- package/es/icons/SmartWaterMeterOutlined.jsx +7 -0
- package/es/icons/SmileFilled.d.ts +4 -0
- package/es/icons/SmileFilled.jsx +7 -0
- package/es/icons/SmileOutlined.d.ts +4 -0
- package/es/icons/SmileOutlined.jsx +7 -0
- package/es/icons/SmokeOutlined.d.ts +4 -0
- package/es/icons/SmokeOutlined.jsx +7 -0
- package/es/icons/StarCheckOutlined.d.ts +4 -0
- package/es/icons/StarCheckOutlined.jsx +7 -0
- package/es/icons/StarFilled.d.ts +4 -0
- package/es/icons/StarFilled.jsx +7 -0
- package/es/icons/StarOutlined.d.ts +4 -0
- package/es/icons/StarOutlined.jsx +7 -0
- package/es/icons/TagFilled.d.ts +4 -0
- package/es/icons/TagFilled.jsx +7 -0
- package/es/icons/TagOutlined.d.ts +4 -0
- package/es/icons/TagOutlined.jsx +7 -0
- package/es/icons/TagsFilled.d.ts +4 -0
- package/es/icons/TagsFilled.jsx +7 -0
- package/es/icons/TagsOutlined.d.ts +4 -0
- package/es/icons/TagsOutlined.jsx +7 -0
- package/es/icons/TemperaturePatchOutlined.d.ts +4 -0
- package/es/icons/TemperaturePatchOutlined.jsx +7 -0
- package/es/icons/ThermometerOutlined.d.ts +4 -0
- package/es/icons/ThermometerOutlined.jsx +7 -0
- package/es/icons/ToTopOutlined.d.ts +4 -0
- package/es/icons/ToTopOutlined.jsx +7 -0
- package/es/icons/UpOutlined.d.ts +4 -0
- package/es/icons/UpOutlined.jsx +7 -0
- package/es/icons/VideoCameraFilled.d.ts +4 -0
- package/es/icons/VideoCameraFilled.jsx +7 -0
- package/es/icons/VideoCameraOutlined.d.ts +4 -0
- package/es/icons/VideoCameraOutlined.jsx +7 -0
- package/es/icons/VideoFilled.d.ts +4 -0
- package/es/icons/VideoFilled.jsx +7 -0
- package/es/icons/VideoOutlined.d.ts +4 -0
- package/es/icons/VideoOutlined.jsx +7 -0
- package/es/icons/VirtualCameraOutlined.d.ts +4 -0
- package/es/icons/VirtualCameraOutlined.jsx +7 -0
- package/es/icons/WarningFilled.d.ts +4 -0
- package/es/icons/WarningFilled.jsx +7 -0
- package/es/icons/WarningOutlined.d.ts +4 -0
- package/es/icons/WarningOutlined.jsx +7 -0
- package/es/icons/WaterFlowOutlined.d.ts +4 -0
- package/es/icons/WaterFlowOutlined.jsx +7 -0
- package/es/icons/WaterLevelOutlined.d.ts +4 -0
- package/es/icons/WaterLevelOutlined.jsx +7 -0
- package/es/icons/WeatherStationOutlined.d.ts +4 -0
- package/es/icons/WeatherStationOutlined.jsx +7 -0
- package/es/icons/WindSpeedOutlined.d.ts +4 -0
- package/es/icons/WindSpeedOutlined.jsx +7 -0
- package/es/icons/ZoomInOutlined.d.ts +4 -0
- package/es/icons/ZoomInOutlined.jsx +7 -0
- package/es/icons/ZoomOutOutlined.d.ts +4 -0
- package/es/icons/ZoomOutOutlined.jsx +7 -0
- package/es/icons/index.d.ts +144 -0
- package/es/icons/index.js +145 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +7 -0
- package/es/utils.d.ts +18 -0
- package/es/utils.js +57 -0
- package/lib/components/Context.d.ts +9 -0
- package/lib/components/Context.jsx +5 -0
- package/lib/components/Icon.d.ts +20 -0
- package/lib/components/Icon.jsx +79 -0
- package/lib/components/IconBase.d.ts +24 -0
- package/lib/components/IconBase.jsx +64 -0
- package/lib/components/IconFont.d.ts +12 -0
- package/lib/components/IconFont.jsx +82 -0
- package/lib/components/SensoroIcon.d.ts +16 -0
- package/lib/components/SensoroIcon.jsx +58 -0
- package/lib/components/twoTonePrimaryColor.d.ts +3 -0
- package/lib/components/twoTonePrimaryColor.js +24 -0
- package/lib/hooks/useInsertStyles.d.ts +1 -0
- package/lib/hooks/useInsertStyles.js +22 -0
- package/lib/icons/AccountBookFilled.d.ts +4 -0
- package/lib/icons/AccountBookFilled.jsx +35 -0
- package/lib/icons/AccountBookOutlined.d.ts +4 -0
- package/lib/icons/AccountBookOutlined.jsx +35 -0
- package/lib/icons/AccountBookTwoTone.d.ts +4 -0
- package/lib/icons/AccountBookTwoTone.jsx +35 -0
- package/lib/icons/AimOutlined.d.ts +4 -0
- package/lib/icons/AimOutlined.jsx +35 -0
- package/lib/icons/AircircuitBreakerOutlined.d.ts +4 -0
- package/lib/icons/AircircuitBreakerOutlined.jsx +35 -0
- package/lib/icons/AlarmHostOutlined.d.ts +4 -0
- package/lib/icons/AlarmHostOutlined.jsx +35 -0
- package/lib/icons/AlertCameraOutlined.d.ts +4 -0
- package/lib/icons/AlertCameraOutlined.jsx +35 -0
- package/lib/icons/AlertFilled.d.ts +4 -0
- package/lib/icons/AlertFilled.jsx +35 -0
- package/lib/icons/AlertOutlined.d.ts +4 -0
- package/lib/icons/AlertOutlined.jsx +35 -0
- package/lib/icons/AlignCenterOutlined.d.ts +4 -0
- package/lib/icons/AlignCenterOutlined.jsx +35 -0
- package/lib/icons/AlignLeftOutlined.d.ts +4 -0
- package/lib/icons/AlignLeftOutlined.jsx +35 -0
- package/lib/icons/AlignRightOutlined.d.ts +4 -0
- package/lib/icons/AlignRightOutlined.jsx +35 -0
- package/lib/icons/AppstoreAddOutlined.d.ts +4 -0
- package/lib/icons/AppstoreAddOutlined.jsx +35 -0
- package/lib/icons/AppstoreFilled.d.ts +4 -0
- package/lib/icons/AppstoreFilled.jsx +35 -0
- package/lib/icons/AppstoreOutlined.d.ts +4 -0
- package/lib/icons/AppstoreOutlined.jsx +35 -0
- package/lib/icons/AudibleAlarmHostOutlined.d.ts +4 -0
- package/lib/icons/AudibleAlarmHostOutlined.jsx +35 -0
- package/lib/icons/AudibleAlarmOutlined.d.ts +4 -0
- package/lib/icons/AudibleAlarmOutlined.jsx +35 -0
- package/lib/icons/BlockOutlined.d.ts +4 -0
- package/lib/icons/BlockOutlined.jsx +35 -0
- package/lib/icons/CameraFilled.d.ts +4 -0
- package/lib/icons/CameraFilled.jsx +35 -0
- package/lib/icons/CameraOutlined.d.ts +4 -0
- package/lib/icons/CameraOutlined.jsx +35 -0
- package/lib/icons/CarFilled.d.ts +4 -0
- package/lib/icons/CarFilled.jsx +35 -0
- package/lib/icons/CarOutlined.d.ts +4 -0
- package/lib/icons/CarOutlined.jsx +35 -0
- package/lib/icons/Ch4Outlined.d.ts +4 -0
- package/lib/icons/Ch4Outlined.jsx +35 -0
- package/lib/icons/CheckCircleFilled.d.ts +4 -0
- package/lib/icons/CheckCircleFilled.jsx +35 -0
- package/lib/icons/CheckCircleOutlined.d.ts +4 -0
- package/lib/icons/CheckCircleOutlined.jsx +35 -0
- package/lib/icons/CheckOutlined.d.ts +4 -0
- package/lib/icons/CheckOutlined.jsx +35 -0
- package/lib/icons/CheckSquareFilled.d.ts +4 -0
- package/lib/icons/CheckSquareFilled.jsx +35 -0
- package/lib/icons/CheckSquareOutlined.d.ts +4 -0
- package/lib/icons/CheckSquareOutlined.jsx +35 -0
- package/lib/icons/ClearOutlined.d.ts +4 -0
- package/lib/icons/ClearOutlined.jsx +35 -0
- package/lib/icons/CloseCircleFilled.d.ts +4 -0
- package/lib/icons/CloseCircleFilled.jsx +35 -0
- package/lib/icons/CloseCircleOutlined.d.ts +4 -0
- package/lib/icons/CloseCircleOutlined.jsx +35 -0
- package/lib/icons/CloseOutlined.d.ts +4 -0
- package/lib/icons/CloseOutlined.jsx +35 -0
- package/lib/icons/CloseSquareFilled.d.ts +4 -0
- package/lib/icons/CloseSquareFilled.jsx +35 -0
- package/lib/icons/CloseSquareOutlined.d.ts +4 -0
- package/lib/icons/CloseSquareOutlined.jsx +35 -0
- package/lib/icons/Co2Outlined.d.ts +4 -0
- package/lib/icons/Co2Outlined.jsx +35 -0
- package/lib/icons/CoOutlined.d.ts +4 -0
- package/lib/icons/CoOutlined.jsx +35 -0
- package/lib/icons/CompressOutlined.d.ts +4 -0
- package/lib/icons/CompressOutlined.jsx +35 -0
- package/lib/icons/ControllerOutlined.d.ts +4 -0
- package/lib/icons/ControllerOutlined.jsx +35 -0
- package/lib/icons/DeleteOutlined.d.ts +4 -0
- package/lib/icons/DeleteOutlined.jsx +35 -0
- package/lib/icons/DomeCameraOutlined.d.ts +4 -0
- package/lib/icons/DomeCameraOutlined.jsx +35 -0
- package/lib/icons/DoorLockOutlined.d.ts +4 -0
- package/lib/icons/DoorLockOutlined.jsx +35 -0
- package/lib/icons/DownOutlined.d.ts +4 -0
- package/lib/icons/DownOutlined.jsx +35 -0
- package/lib/icons/DroneOutlined.d.ts +4 -0
- package/lib/icons/DroneOutlined.jsx +35 -0
- package/lib/icons/ElectricalFireOutlined.d.ts +4 -0
- package/lib/icons/ElectricalFireOutlined.jsx +35 -0
- package/lib/icons/EllipsisOutlined.d.ts +4 -0
- package/lib/icons/EllipsisOutlined.jsx +35 -0
- package/lib/icons/ExclamationCircleFilled.d.ts +4 -0
- package/lib/icons/ExclamationCircleFilled.jsx +35 -0
- package/lib/icons/ExpandOutlined.d.ts +4 -0
- package/lib/icons/ExpandOutlined.jsx +35 -0
- package/lib/icons/EyeFilled.d.ts +4 -0
- package/lib/icons/EyeFilled.jsx +35 -0
- package/lib/icons/EyeInvisibleFilled.d.ts +4 -0
- package/lib/icons/EyeInvisibleFilled.jsx +35 -0
- package/lib/icons/EyeInvisibleOutlined.d.ts +4 -0
- package/lib/icons/EyeInvisibleOutlined.jsx +35 -0
- package/lib/icons/EyeOutlined.d.ts +4 -0
- package/lib/icons/EyeOutlined.jsx +35 -0
- package/lib/icons/FaceCameraOutlined.d.ts +4 -0
- package/lib/icons/FaceCameraOutlined.jsx +35 -0
- package/lib/icons/FireCameraOutlined.d.ts +4 -0
- package/lib/icons/FireCameraOutlined.jsx +35 -0
- package/lib/icons/FireHostOutlined.d.ts +4 -0
- package/lib/icons/FireHostOutlined.jsx +35 -0
- package/lib/icons/FireHydrantOutlined.d.ts +4 -0
- package/lib/icons/FireHydrantOutlined.jsx +35 -0
- package/lib/icons/FireHydraulicsOutlined.d.ts +4 -0
- package/lib/icons/FireHydraulicsOutlined.jsx +35 -0
- package/lib/icons/FormOutlined.d.ts +4 -0
- package/lib/icons/FormOutlined.jsx +35 -0
- package/lib/icons/FrownFilled.d.ts +4 -0
- package/lib/icons/FrownFilled.jsx +35 -0
- package/lib/icons/FrownOutlined.d.ts +4 -0
- package/lib/icons/FrownOutlined.jsx +35 -0
- package/lib/icons/FullTargetCameraOutlined.d.ts +4 -0
- package/lib/icons/FullTargetCameraOutlined.jsx +35 -0
- package/lib/icons/FullTargetOutlined.d.ts +4 -0
- package/lib/icons/FullTargetOutlined.jsx +35 -0
- package/lib/icons/GasSensorControllerOutlined.d.ts +4 -0
- package/lib/icons/GasSensorControllerOutlined.jsx +35 -0
- package/lib/icons/GasSensorOutlined.d.ts +4 -0
- package/lib/icons/GasSensorOutlined.jsx +35 -0
- package/lib/icons/GatewayOutlined.d.ts +4 -0
- package/lib/icons/GatewayOutlined.jsx +35 -0
- package/lib/icons/HomeOutlined.d.ts +4 -0
- package/lib/icons/HomeOutlined.jsx +35 -0
- package/lib/icons/HumanTrafficVideoOutlined.d.ts +4 -0
- package/lib/icons/HumanTrafficVideoOutlined.jsx +35 -0
- package/lib/icons/HydrolabOutlined.d.ts +4 -0
- package/lib/icons/HydrolabOutlined.jsx +35 -0
- package/lib/icons/IdcardFilled.d.ts +4 -0
- package/lib/icons/IdcardFilled.jsx +35 -0
- package/lib/icons/IdcardOutlined.d.ts +4 -0
- package/lib/icons/IdcardOutlined.jsx +35 -0
- package/lib/icons/InfraredHostOutlined.d.ts +4 -0
- package/lib/icons/InfraredHostOutlined.jsx +35 -0
- package/lib/icons/InfraredOutlined.d.ts +4 -0
- package/lib/icons/InfraredOutlined.jsx +35 -0
- package/lib/icons/IntelligentAccessOutlined.d.ts +4 -0
- package/lib/icons/IntelligentAccessOutlined.jsx +35 -0
- package/lib/icons/KeyOutlined.d.ts +4 -0
- package/lib/icons/KeyOutlined.jsx +35 -0
- package/lib/icons/LeakingOutlined.d.ts +4 -0
- package/lib/icons/LeakingOutlined.jsx +35 -0
- package/lib/icons/LeftOutlined.d.ts +4 -0
- package/lib/icons/LeftOutlined.jsx +35 -0
- package/lib/icons/LinsAccessOutlined.d.ts +4 -0
- package/lib/icons/LinsAccessOutlined.jsx +35 -0
- package/lib/icons/LockFilled.d.ts +4 -0
- package/lib/icons/LockFilled.jsx +35 -0
- package/lib/icons/LockOutlined.d.ts +4 -0
- package/lib/icons/LockOutlined.jsx +35 -0
- package/lib/icons/LpgOutlined.d.ts +4 -0
- package/lib/icons/LpgOutlined.jsx +35 -0
- package/lib/icons/ManholeCoverOutlined.d.ts +4 -0
- package/lib/icons/ManholeCoverOutlined.jsx +35 -0
- package/lib/icons/ManualAlarmCircleOutlined.d.ts +4 -0
- package/lib/icons/ManualAlarmCircleOutlined.jsx +35 -0
- package/lib/icons/ManualAlarmSquareOutlined.d.ts +4 -0
- package/lib/icons/ManualAlarmSquareOutlined.jsx +35 -0
- package/lib/icons/MenuFoldOutlined.d.ts +4 -0
- package/lib/icons/MenuFoldOutlined.jsx +35 -0
- package/lib/icons/MenuUnfoldOutlined.d.ts +4 -0
- package/lib/icons/MenuUnfoldOutlined.jsx +35 -0
- package/lib/icons/MinusCircleFilled.d.ts +4 -0
- package/lib/icons/MinusCircleFilled.jsx +35 -0
- package/lib/icons/MinusCircleOutlined.d.ts +4 -0
- package/lib/icons/MinusCircleOutlined.jsx +35 -0
- package/lib/icons/MinusOutlined.d.ts +4 -0
- package/lib/icons/MinusOutlined.jsx +35 -0
- package/lib/icons/MinusSquareFilled.d.ts +4 -0
- package/lib/icons/MinusSquareFilled.jsx +35 -0
- package/lib/icons/MinusSquareOutlined.d.ts +4 -0
- package/lib/icons/MinusSquareOutlined.jsx +35 -0
- package/lib/icons/MoreOutlined.d.ts +4 -0
- package/lib/icons/MoreOutlined.jsx +35 -0
- package/lib/icons/Nh3Outlined.d.ts +4 -0
- package/lib/icons/Nh3Outlined.jsx +35 -0
- package/lib/icons/O2Outlined.d.ts +4 -0
- package/lib/icons/O2Outlined.jsx +35 -0
- package/lib/icons/ParkingLotOutlined.d.ts +4 -0
- package/lib/icons/ParkingLotOutlined.jsx +35 -0
- package/lib/icons/PauseCircleFilled.d.ts +4 -0
- package/lib/icons/PauseCircleFilled.jsx +35 -0
- package/lib/icons/PauseCircleOutlined.d.ts +4 -0
- package/lib/icons/PauseCircleOutlined.jsx +35 -0
- package/lib/icons/PauseOutlined.d.ts +4 -0
- package/lib/icons/PauseOutlined.jsx +35 -0
- package/lib/icons/PayCircleFilled.d.ts +4 -0
- package/lib/icons/PayCircleFilled.jsx +35 -0
- package/lib/icons/PayCircleOutlined.d.ts +4 -0
- package/lib/icons/PayCircleOutlined.jsx +35 -0
- package/lib/icons/PersonCameraOutlined.d.ts +4 -0
- package/lib/icons/PersonCameraOutlined.jsx +35 -0
- package/lib/icons/PlayCircleFilled.d.ts +4 -0
- package/lib/icons/PlayCircleFilled.jsx +35 -0
- package/lib/icons/PlayCircleOutlined.d.ts +4 -0
- package/lib/icons/PlayCircleOutlined.jsx +35 -0
- package/lib/icons/PlayOutlined.d.ts +4 -0
- package/lib/icons/PlayOutlined.jsx +35 -0
- package/lib/icons/PlusCircleFilled.d.ts +4 -0
- package/lib/icons/PlusCircleFilled.jsx +35 -0
- package/lib/icons/PlusCircleOutlined.d.ts +4 -0
- package/lib/icons/PlusCircleOutlined.jsx +35 -0
- package/lib/icons/PlusOutlined.d.ts +4 -0
- package/lib/icons/PlusOutlined.jsx +35 -0
- package/lib/icons/PlusSquareFilled.d.ts +4 -0
- package/lib/icons/PlusSquareFilled.jsx +35 -0
- package/lib/icons/PmOutlined.d.ts +4 -0
- package/lib/icons/PmOutlined.jsx +35 -0
- package/lib/icons/RightOutlined.d.ts +4 -0
- package/lib/icons/RightOutlined.jsx +35 -0
- package/lib/icons/RotationCloseOutlined.d.ts +4 -0
- package/lib/icons/RotationCloseOutlined.jsx +35 -0
- package/lib/icons/RotationOutlined.d.ts +4 -0
- package/lib/icons/RotationOutlined.jsx +35 -0
- package/lib/icons/SettingOutlined.d.ts +4 -0
- package/lib/icons/SettingOutlined.jsx +35 -0
- package/lib/icons/SleepOutlined.d.ts +4 -0
- package/lib/icons/SleepOutlined.jsx +35 -0
- package/lib/icons/SmartBoxOutlined.d.ts +4 -0
- package/lib/icons/SmartBoxOutlined.jsx +35 -0
- package/lib/icons/SmartDoorLockOutlined.d.ts +4 -0
- package/lib/icons/SmartDoorLockOutlined.jsx +35 -0
- package/lib/icons/SmartLightPoleOutlined.d.ts +4 -0
- package/lib/icons/SmartLightPoleOutlined.jsx +35 -0
- package/lib/icons/SmartWatchOutlined.d.ts +4 -0
- package/lib/icons/SmartWatchOutlined.jsx +35 -0
- package/lib/icons/SmartWaterMeterOutlined.d.ts +4 -0
- package/lib/icons/SmartWaterMeterOutlined.jsx +35 -0
- package/lib/icons/SmileFilled.d.ts +4 -0
- package/lib/icons/SmileFilled.jsx +35 -0
- package/lib/icons/SmileOutlined.d.ts +4 -0
- package/lib/icons/SmileOutlined.jsx +35 -0
- package/lib/icons/SmokeOutlined.d.ts +4 -0
- package/lib/icons/SmokeOutlined.jsx +35 -0
- package/lib/icons/StarCheckOutlined.d.ts +4 -0
- package/lib/icons/StarCheckOutlined.jsx +35 -0
- package/lib/icons/StarFilled.d.ts +4 -0
- package/lib/icons/StarFilled.jsx +35 -0
- package/lib/icons/StarOutlined.d.ts +4 -0
- package/lib/icons/StarOutlined.jsx +35 -0
- package/lib/icons/TagFilled.d.ts +4 -0
- package/lib/icons/TagFilled.jsx +35 -0
- package/lib/icons/TagOutlined.d.ts +4 -0
- package/lib/icons/TagOutlined.jsx +35 -0
- package/lib/icons/TagsFilled.d.ts +4 -0
- package/lib/icons/TagsFilled.jsx +35 -0
- package/lib/icons/TagsOutlined.d.ts +4 -0
- package/lib/icons/TagsOutlined.jsx +35 -0
- package/lib/icons/TemperaturePatchOutlined.d.ts +4 -0
- package/lib/icons/TemperaturePatchOutlined.jsx +35 -0
- package/lib/icons/ThermometerOutlined.d.ts +4 -0
- package/lib/icons/ThermometerOutlined.jsx +35 -0
- package/lib/icons/ToTopOutlined.d.ts +4 -0
- package/lib/icons/ToTopOutlined.jsx +35 -0
- package/lib/icons/UpOutlined.d.ts +4 -0
- package/lib/icons/UpOutlined.jsx +35 -0
- package/lib/icons/VideoCameraFilled.d.ts +4 -0
- package/lib/icons/VideoCameraFilled.jsx +35 -0
- package/lib/icons/VideoCameraOutlined.d.ts +4 -0
- package/lib/icons/VideoCameraOutlined.jsx +35 -0
- package/lib/icons/VideoFilled.d.ts +4 -0
- package/lib/icons/VideoFilled.jsx +35 -0
- package/lib/icons/VideoOutlined.d.ts +4 -0
- package/lib/icons/VideoOutlined.jsx +35 -0
- package/lib/icons/VirtualCameraOutlined.d.ts +4 -0
- package/lib/icons/VirtualCameraOutlined.jsx +35 -0
- package/lib/icons/WarningFilled.d.ts +4 -0
- package/lib/icons/WarningFilled.jsx +35 -0
- package/lib/icons/WarningOutlined.d.ts +4 -0
- package/lib/icons/WarningOutlined.jsx +35 -0
- package/lib/icons/WaterFlowOutlined.d.ts +4 -0
- package/lib/icons/WaterFlowOutlined.jsx +35 -0
- package/lib/icons/WaterLevelOutlined.d.ts +4 -0
- package/lib/icons/WaterLevelOutlined.jsx +35 -0
- package/lib/icons/WeatherStationOutlined.d.ts +4 -0
- package/lib/icons/WeatherStationOutlined.jsx +35 -0
- package/lib/icons/WindSpeedOutlined.d.ts +4 -0
- package/lib/icons/WindSpeedOutlined.jsx +35 -0
- package/lib/icons/ZoomInOutlined.d.ts +4 -0
- package/lib/icons/ZoomInOutlined.jsx +35 -0
- package/lib/icons/ZoomOutOutlined.d.ts +4 -0
- package/lib/icons/ZoomOutOutlined.jsx +35 -0
- package/lib/icons/index.d.ts +144 -0
- package/lib/icons/index.js +297 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +29 -0
- package/lib/utils.d.ts +18 -0
- package/lib/utils.js +68 -0
- package/package.json +32 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
// This index.ts file is generated automatically.
|
|
2
|
+
export { default as AccountBookFilled } from './AccountBookFilled';
|
|
3
|
+
export { default as AccountBookOutlined } from './AccountBookOutlined';
|
|
4
|
+
export { default as AccountBookTwoTone } from './AccountBookTwoTone';
|
|
5
|
+
export { default as AimOutlined } from './AimOutlined';
|
|
6
|
+
export { default as AircircuitBreakerOutlined } from './AircircuitBreakerOutlined';
|
|
7
|
+
export { default as AlarmHostOutlined } from './AlarmHostOutlined';
|
|
8
|
+
export { default as AlertCameraOutlined } from './AlertCameraOutlined';
|
|
9
|
+
export { default as AlertFilled } from './AlertFilled';
|
|
10
|
+
export { default as AlertOutlined } from './AlertOutlined';
|
|
11
|
+
export { default as AlignCenterOutlined } from './AlignCenterOutlined';
|
|
12
|
+
export { default as AlignLeftOutlined } from './AlignLeftOutlined';
|
|
13
|
+
export { default as AlignRightOutlined } from './AlignRightOutlined';
|
|
14
|
+
export { default as AppstoreAddOutlined } from './AppstoreAddOutlined';
|
|
15
|
+
export { default as AppstoreFilled } from './AppstoreFilled';
|
|
16
|
+
export { default as AppstoreOutlined } from './AppstoreOutlined';
|
|
17
|
+
export { default as AudibleAlarmHostOutlined } from './AudibleAlarmHostOutlined';
|
|
18
|
+
export { default as AudibleAlarmOutlined } from './AudibleAlarmOutlined';
|
|
19
|
+
export { default as BlockOutlined } from './BlockOutlined';
|
|
20
|
+
export { default as CameraFilled } from './CameraFilled';
|
|
21
|
+
export { default as CameraOutlined } from './CameraOutlined';
|
|
22
|
+
export { default as CarFilled } from './CarFilled';
|
|
23
|
+
export { default as CarOutlined } from './CarOutlined';
|
|
24
|
+
export { default as Ch4Outlined } from './Ch4Outlined';
|
|
25
|
+
export { default as CheckCircleFilled } from './CheckCircleFilled';
|
|
26
|
+
export { default as CheckCircleOutlined } from './CheckCircleOutlined';
|
|
27
|
+
export { default as CheckOutlined } from './CheckOutlined';
|
|
28
|
+
export { default as CheckSquareFilled } from './CheckSquareFilled';
|
|
29
|
+
export { default as CheckSquareOutlined } from './CheckSquareOutlined';
|
|
30
|
+
export { default as ClearOutlined } from './ClearOutlined';
|
|
31
|
+
export { default as CloseCircleFilled } from './CloseCircleFilled';
|
|
32
|
+
export { default as CloseCircleOutlined } from './CloseCircleOutlined';
|
|
33
|
+
export { default as CloseOutlined } from './CloseOutlined';
|
|
34
|
+
export { default as CloseSquareFilled } from './CloseSquareFilled';
|
|
35
|
+
export { default as CloseSquareOutlined } from './CloseSquareOutlined';
|
|
36
|
+
export { default as Co2Outlined } from './Co2Outlined';
|
|
37
|
+
export { default as CoOutlined } from './CoOutlined';
|
|
38
|
+
export { default as CompressOutlined } from './CompressOutlined';
|
|
39
|
+
export { default as ControllerOutlined } from './ControllerOutlined';
|
|
40
|
+
export { default as DeleteOutlined } from './DeleteOutlined';
|
|
41
|
+
export { default as DomeCameraOutlined } from './DomeCameraOutlined';
|
|
42
|
+
export { default as DoorLockOutlined } from './DoorLockOutlined';
|
|
43
|
+
export { default as DownOutlined } from './DownOutlined';
|
|
44
|
+
export { default as DroneOutlined } from './DroneOutlined';
|
|
45
|
+
export { default as ElectricalFireOutlined } from './ElectricalFireOutlined';
|
|
46
|
+
export { default as EllipsisOutlined } from './EllipsisOutlined';
|
|
47
|
+
export { default as ExclamationCircleFilled } from './ExclamationCircleFilled';
|
|
48
|
+
export { default as ExpandOutlined } from './ExpandOutlined';
|
|
49
|
+
export { default as EyeFilled } from './EyeFilled';
|
|
50
|
+
export { default as EyeInvisibleFilled } from './EyeInvisibleFilled';
|
|
51
|
+
export { default as EyeInvisibleOutlined } from './EyeInvisibleOutlined';
|
|
52
|
+
export { default as EyeOutlined } from './EyeOutlined';
|
|
53
|
+
export { default as FaceCameraOutlined } from './FaceCameraOutlined';
|
|
54
|
+
export { default as FireCameraOutlined } from './FireCameraOutlined';
|
|
55
|
+
export { default as FireHostOutlined } from './FireHostOutlined';
|
|
56
|
+
export { default as FireHydrantOutlined } from './FireHydrantOutlined';
|
|
57
|
+
export { default as FireHydraulicsOutlined } from './FireHydraulicsOutlined';
|
|
58
|
+
export { default as FormOutlined } from './FormOutlined';
|
|
59
|
+
export { default as FrownFilled } from './FrownFilled';
|
|
60
|
+
export { default as FrownOutlined } from './FrownOutlined';
|
|
61
|
+
export { default as FullTargetCameraOutlined } from './FullTargetCameraOutlined';
|
|
62
|
+
export { default as FullTargetOutlined } from './FullTargetOutlined';
|
|
63
|
+
export { default as GasSensorControllerOutlined } from './GasSensorControllerOutlined';
|
|
64
|
+
export { default as GasSensorOutlined } from './GasSensorOutlined';
|
|
65
|
+
export { default as GatewayOutlined } from './GatewayOutlined';
|
|
66
|
+
export { default as HomeOutlined } from './HomeOutlined';
|
|
67
|
+
export { default as HumanTrafficVideoOutlined } from './HumanTrafficVideoOutlined';
|
|
68
|
+
export { default as HydrolabOutlined } from './HydrolabOutlined';
|
|
69
|
+
export { default as IdcardFilled } from './IdcardFilled';
|
|
70
|
+
export { default as IdcardOutlined } from './IdcardOutlined';
|
|
71
|
+
export { default as InfraredHostOutlined } from './InfraredHostOutlined';
|
|
72
|
+
export { default as InfraredOutlined } from './InfraredOutlined';
|
|
73
|
+
export { default as IntelligentAccessOutlined } from './IntelligentAccessOutlined';
|
|
74
|
+
export { default as KeyOutlined } from './KeyOutlined';
|
|
75
|
+
export { default as LeakingOutlined } from './LeakingOutlined';
|
|
76
|
+
export { default as LeftOutlined } from './LeftOutlined';
|
|
77
|
+
export { default as LinsAccessOutlined } from './LinsAccessOutlined';
|
|
78
|
+
export { default as LockFilled } from './LockFilled';
|
|
79
|
+
export { default as LockOutlined } from './LockOutlined';
|
|
80
|
+
export { default as LpgOutlined } from './LpgOutlined';
|
|
81
|
+
export { default as ManholeCoverOutlined } from './ManholeCoverOutlined';
|
|
82
|
+
export { default as ManualAlarmCircleOutlined } from './ManualAlarmCircleOutlined';
|
|
83
|
+
export { default as ManualAlarmSquareOutlined } from './ManualAlarmSquareOutlined';
|
|
84
|
+
export { default as MenuFoldOutlined } from './MenuFoldOutlined';
|
|
85
|
+
export { default as MenuUnfoldOutlined } from './MenuUnfoldOutlined';
|
|
86
|
+
export { default as MinusCircleFilled } from './MinusCircleFilled';
|
|
87
|
+
export { default as MinusCircleOutlined } from './MinusCircleOutlined';
|
|
88
|
+
export { default as MinusOutlined } from './MinusOutlined';
|
|
89
|
+
export { default as MinusSquareFilled } from './MinusSquareFilled';
|
|
90
|
+
export { default as MinusSquareOutlined } from './MinusSquareOutlined';
|
|
91
|
+
export { default as MoreOutlined } from './MoreOutlined';
|
|
92
|
+
export { default as Nh3Outlined } from './Nh3Outlined';
|
|
93
|
+
export { default as O2Outlined } from './O2Outlined';
|
|
94
|
+
export { default as ParkingLotOutlined } from './ParkingLotOutlined';
|
|
95
|
+
export { default as PauseCircleFilled } from './PauseCircleFilled';
|
|
96
|
+
export { default as PauseCircleOutlined } from './PauseCircleOutlined';
|
|
97
|
+
export { default as PauseOutlined } from './PauseOutlined';
|
|
98
|
+
export { default as PayCircleFilled } from './PayCircleFilled';
|
|
99
|
+
export { default as PayCircleOutlined } from './PayCircleOutlined';
|
|
100
|
+
export { default as PersonCameraOutlined } from './PersonCameraOutlined';
|
|
101
|
+
export { default as PlayCircleFilled } from './PlayCircleFilled';
|
|
102
|
+
export { default as PlayCircleOutlined } from './PlayCircleOutlined';
|
|
103
|
+
export { default as PlayOutlined } from './PlayOutlined';
|
|
104
|
+
export { default as PlusCircleFilled } from './PlusCircleFilled';
|
|
105
|
+
export { default as PlusCircleOutlined } from './PlusCircleOutlined';
|
|
106
|
+
export { default as PlusOutlined } from './PlusOutlined';
|
|
107
|
+
export { default as PlusSquareFilled } from './PlusSquareFilled';
|
|
108
|
+
export { default as PmOutlined } from './PmOutlined';
|
|
109
|
+
export { default as RightOutlined } from './RightOutlined';
|
|
110
|
+
export { default as RotationCloseOutlined } from './RotationCloseOutlined';
|
|
111
|
+
export { default as RotationOutlined } from './RotationOutlined';
|
|
112
|
+
export { default as SettingOutlined } from './SettingOutlined';
|
|
113
|
+
export { default as SleepOutlined } from './SleepOutlined';
|
|
114
|
+
export { default as SmartBoxOutlined } from './SmartBoxOutlined';
|
|
115
|
+
export { default as SmartDoorLockOutlined } from './SmartDoorLockOutlined';
|
|
116
|
+
export { default as SmartLightPoleOutlined } from './SmartLightPoleOutlined';
|
|
117
|
+
export { default as SmartWatchOutlined } from './SmartWatchOutlined';
|
|
118
|
+
export { default as SmartWaterMeterOutlined } from './SmartWaterMeterOutlined';
|
|
119
|
+
export { default as SmileFilled } from './SmileFilled';
|
|
120
|
+
export { default as SmileOutlined } from './SmileOutlined';
|
|
121
|
+
export { default as SmokeOutlined } from './SmokeOutlined';
|
|
122
|
+
export { default as StarCheckOutlined } from './StarCheckOutlined';
|
|
123
|
+
export { default as StarFilled } from './StarFilled';
|
|
124
|
+
export { default as StarOutlined } from './StarOutlined';
|
|
125
|
+
export { default as TagFilled } from './TagFilled';
|
|
126
|
+
export { default as TagOutlined } from './TagOutlined';
|
|
127
|
+
export { default as TagsFilled } from './TagsFilled';
|
|
128
|
+
export { default as TagsOutlined } from './TagsOutlined';
|
|
129
|
+
export { default as TemperaturePatchOutlined } from './TemperaturePatchOutlined';
|
|
130
|
+
export { default as ThermometerOutlined } from './ThermometerOutlined';
|
|
131
|
+
export { default as ToTopOutlined } from './ToTopOutlined';
|
|
132
|
+
export { default as UpOutlined } from './UpOutlined';
|
|
133
|
+
export { default as VideoCameraFilled } from './VideoCameraFilled';
|
|
134
|
+
export { default as VideoCameraOutlined } from './VideoCameraOutlined';
|
|
135
|
+
export { default as VideoFilled } from './VideoFilled';
|
|
136
|
+
export { default as VideoOutlined } from './VideoOutlined';
|
|
137
|
+
export { default as VirtualCameraOutlined } from './VirtualCameraOutlined';
|
|
138
|
+
export { default as WarningFilled } from './WarningFilled';
|
|
139
|
+
export { default as WarningOutlined } from './WarningOutlined';
|
|
140
|
+
export { default as WaterFlowOutlined } from './WaterFlowOutlined';
|
|
141
|
+
export { default as WaterLevelOutlined } from './WaterLevelOutlined';
|
|
142
|
+
export { default as WeatherStationOutlined } from './WeatherStationOutlined';
|
|
143
|
+
export { default as WindSpeedOutlined } from './WindSpeedOutlined';
|
|
144
|
+
export { default as ZoomInOutlined } from './ZoomInOutlined';
|
|
145
|
+
export { default as ZoomOutOutlined } from './ZoomOutOutlined';
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export * from './icons';
|
|
3
|
+
export * from './components/twoTonePrimaryColor';
|
|
4
|
+
export { default as createFromIconfontCN } from './components/IconFont';
|
|
5
|
+
export { default } from './components/Icon';
|
|
6
|
+
declare const IconProvider: import("react").Provider<import("./components/Context").IconContextProps>;
|
|
7
|
+
export { IconProvider };
|
package/es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Context from './components/Context';
|
|
2
|
+
export * from './icons';
|
|
3
|
+
export * from './components/twoTonePrimaryColor';
|
|
4
|
+
export { default as createFromIconfontCN } from './components/IconFont';
|
|
5
|
+
export { default } from './components/Icon';
|
|
6
|
+
var IconProvider = Context.Provider;
|
|
7
|
+
export { IconProvider };
|
package/es/utils.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AbstractNode, IconDefinition } from '@sensoro-design/icons-svg/lib/types';
|
|
2
|
+
export interface Attrs {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function normalizeAttrs(attrs?: Attrs): Attrs;
|
|
6
|
+
export declare function generate(node: AbstractNode, key: string, rootProps?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
} | false): any;
|
|
9
|
+
export declare function getSecondaryColor(primaryColor: string): string;
|
|
10
|
+
export declare function isIconDefinition(target: any): target is IconDefinition;
|
|
11
|
+
export declare const svgBaseProps: {
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
fill: string;
|
|
15
|
+
'aria-hidden': string;
|
|
16
|
+
focusable: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function normalizeTwoToneColors(twoToneColor: string | [string, string] | undefined): string[];
|
package/es/utils.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { generate as generateColor } from '@ant-design/colors';
|
|
14
|
+
export function normalizeAttrs(attrs) {
|
|
15
|
+
if (attrs === void 0) { attrs = {}; }
|
|
16
|
+
return Object.keys(attrs).reduce(function (acc, key) {
|
|
17
|
+
var val = attrs[key];
|
|
18
|
+
switch (key) {
|
|
19
|
+
case 'class':
|
|
20
|
+
acc.className = val;
|
|
21
|
+
delete acc.class;
|
|
22
|
+
break;
|
|
23
|
+
default:
|
|
24
|
+
acc[key] = val;
|
|
25
|
+
}
|
|
26
|
+
return acc;
|
|
27
|
+
}, {});
|
|
28
|
+
}
|
|
29
|
+
export function generate(node, key, rootProps) {
|
|
30
|
+
if (!rootProps) {
|
|
31
|
+
return React.createElement(node.tag, __assign({ key: key }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) { return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index)); }));
|
|
32
|
+
}
|
|
33
|
+
return React.createElement(node.tag, __assign(__assign({ key: key }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) { return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index)); }));
|
|
34
|
+
}
|
|
35
|
+
export function getSecondaryColor(primaryColor) {
|
|
36
|
+
// choose the second color
|
|
37
|
+
return generateColor(primaryColor)[0];
|
|
38
|
+
}
|
|
39
|
+
export function isIconDefinition(target) {
|
|
40
|
+
return (typeof target === 'object' &&
|
|
41
|
+
typeof target.name === 'string' &&
|
|
42
|
+
typeof target.theme === 'string' &&
|
|
43
|
+
(typeof target.icon === 'object' || typeof target.icon === 'function'));
|
|
44
|
+
}
|
|
45
|
+
export var svgBaseProps = {
|
|
46
|
+
width: '1em',
|
|
47
|
+
height: '1em',
|
|
48
|
+
fill: 'currentColor',
|
|
49
|
+
'aria-hidden': 'true',
|
|
50
|
+
focusable: 'false',
|
|
51
|
+
};
|
|
52
|
+
export function normalizeTwoToneColors(twoToneColor) {
|
|
53
|
+
if (!twoToneColor) {
|
|
54
|
+
return [];
|
|
55
|
+
}
|
|
56
|
+
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
57
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IconBaseProps extends React.HTMLProps<HTMLSpanElement> {
|
|
3
|
+
spin?: boolean;
|
|
4
|
+
rotate?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface CustomIconComponentProps {
|
|
7
|
+
width: string | number;
|
|
8
|
+
height: string | number;
|
|
9
|
+
fill: string;
|
|
10
|
+
viewBox?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
}
|
|
14
|
+
export interface IconComponentProps extends IconBaseProps {
|
|
15
|
+
viewBox?: string;
|
|
16
|
+
component?: React.ComponentType<CustomIconComponentProps | React.SVGProps<SVGSVGElement>> | React.ForwardRefExoticComponent<CustomIconComponentProps>;
|
|
17
|
+
ariaLabel?: React.AriaAttributes['aria-label'];
|
|
18
|
+
}
|
|
19
|
+
declare const Icon: React.ForwardRefExoticComponent<Pick<IconComponentProps, "value" | "children" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "key" | "pattern" | "className" | "onClick" | "width" | "height" | "aria-hidden" | "spin" | "rotate" | "viewBox" | "component" | "ariaLabel" | "aria-label" | "tabIndex" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "type" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLSpanElement>>;
|
|
20
|
+
export default Icon;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var classnames_1 = __importDefault(require("@pansy/classnames"));
|
|
30
|
+
var Context_1 = __importDefault(require("./Context"));
|
|
31
|
+
var utils_1 = require("../utils");
|
|
32
|
+
var useInsertStyles_1 = require("../hooks/useInsertStyles");
|
|
33
|
+
var Icon = react_1.default.forwardRef(function (_a, ref) {
|
|
34
|
+
var _b;
|
|
35
|
+
var
|
|
36
|
+
// affect outter <i>...</i>
|
|
37
|
+
className = _a.className,
|
|
38
|
+
// affect inner <svg>...</svg>
|
|
39
|
+
Component = _a.component, viewBox = _a.viewBox, spin = _a.spin, rotate = _a.rotate, tabIndex = _a.tabIndex, onClick = _a.onClick,
|
|
40
|
+
// children
|
|
41
|
+
children = _a.children, restProps = __rest(_a, ["className", "component", "viewBox", "spin", "rotate", "tabIndex", "onClick", "children"]);
|
|
42
|
+
(0, useInsertStyles_1.useInsertStyles)();
|
|
43
|
+
var _c = react_1.default.useContext(Context_1.default).prefixCls, prefixCls = _c === void 0 ? 'sen-icon' : _c;
|
|
44
|
+
var classString = (0, classnames_1.default)(prefixCls, className);
|
|
45
|
+
var svgClassString = (0, classnames_1.default)((_b = {},
|
|
46
|
+
_b["".concat(prefixCls, "-spin")] = !!spin,
|
|
47
|
+
_b));
|
|
48
|
+
var svgStyle = rotate
|
|
49
|
+
? {
|
|
50
|
+
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
51
|
+
transform: "rotate(".concat(rotate, "deg)"),
|
|
52
|
+
}
|
|
53
|
+
: undefined;
|
|
54
|
+
var innerSvgProps = __assign(__assign({}, utils_1.svgBaseProps), { className: svgClassString, style: svgStyle, viewBox: viewBox });
|
|
55
|
+
if (!viewBox) {
|
|
56
|
+
delete innerSvgProps.viewBox;
|
|
57
|
+
}
|
|
58
|
+
// component > children
|
|
59
|
+
var renderInnerNode = function () {
|
|
60
|
+
if (Component) {
|
|
61
|
+
return <Component {...innerSvgProps}>{children}</Component>;
|
|
62
|
+
}
|
|
63
|
+
if (children) {
|
|
64
|
+
return (<svg {...innerSvgProps} viewBox={viewBox}>
|
|
65
|
+
{children}
|
|
66
|
+
</svg>);
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
};
|
|
70
|
+
var iconTabIndex = tabIndex;
|
|
71
|
+
if (iconTabIndex === undefined && onClick) {
|
|
72
|
+
iconTabIndex = -1;
|
|
73
|
+
}
|
|
74
|
+
return (<span role="img" {...restProps} ref={ref} tabIndex={iconTabIndex} onClick={onClick} className={classString}>
|
|
75
|
+
{renderInnerNode()}
|
|
76
|
+
</span>);
|
|
77
|
+
});
|
|
78
|
+
Icon.displayName = 'SenIcon';
|
|
79
|
+
exports.default = Icon;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconDefinition } from '@sensoro-design/icons-svg/lib/types';
|
|
3
|
+
export interface IconProps extends Partial<TwoToneColorPaletteSetter> {
|
|
4
|
+
icon: IconDefinition;
|
|
5
|
+
className?: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<SVGSVGElement>;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
focusable?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface TwoToneColorPaletteSetter {
|
|
11
|
+
primaryColor: string;
|
|
12
|
+
secondaryColor?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface TwoToneColorPalette extends TwoToneColorPaletteSetter {
|
|
15
|
+
calculated?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare function setTwoToneColors({ primaryColor, secondaryColor, }: TwoToneColorPaletteSetter): void;
|
|
18
|
+
declare function getTwoToneColors(): TwoToneColorPalette;
|
|
19
|
+
interface IconBaseComponent<P> extends React.FC<P> {
|
|
20
|
+
getTwoToneColors: typeof getTwoToneColors;
|
|
21
|
+
setTwoToneColors: typeof setTwoToneColors;
|
|
22
|
+
}
|
|
23
|
+
declare const IconBase: IconBaseComponent<IconProps>;
|
|
24
|
+
export default IconBase;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
var useInsertStyles_1 = require("../hooks/useInsertStyles");
|
|
26
|
+
var utils_1 = require("../utils");
|
|
27
|
+
var twoToneColorPalette = {
|
|
28
|
+
primaryColor: '#333',
|
|
29
|
+
secondaryColor: '#E6E6E6',
|
|
30
|
+
calculated: false,
|
|
31
|
+
};
|
|
32
|
+
function setTwoToneColors(_a) {
|
|
33
|
+
var primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor;
|
|
34
|
+
twoToneColorPalette.primaryColor = primaryColor;
|
|
35
|
+
twoToneColorPalette.secondaryColor =
|
|
36
|
+
secondaryColor || (0, utils_1.getSecondaryColor)(primaryColor);
|
|
37
|
+
twoToneColorPalette.calculated = !!secondaryColor;
|
|
38
|
+
}
|
|
39
|
+
function getTwoToneColors() {
|
|
40
|
+
return __assign({}, twoToneColorPalette);
|
|
41
|
+
}
|
|
42
|
+
var IconBase = function (_a) {
|
|
43
|
+
var icon = _a.icon, className = _a.className, onClick = _a.onClick, style = _a.style, primaryColor = _a.primaryColor, secondaryColor = _a.secondaryColor, restProps = __rest(_a, ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"]);
|
|
44
|
+
(0, useInsertStyles_1.useInsertStyles)();
|
|
45
|
+
var colors = twoToneColorPalette;
|
|
46
|
+
if (primaryColor) {
|
|
47
|
+
colors = {
|
|
48
|
+
primaryColor: primaryColor,
|
|
49
|
+
secondaryColor: secondaryColor || (0, utils_1.getSecondaryColor)(primaryColor),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
if (!(0, utils_1.isIconDefinition)(icon)) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
var target = icon;
|
|
56
|
+
if (target && typeof target.icon === 'function') {
|
|
57
|
+
target = __assign(__assign({}, target), { icon: target.icon(colors.primaryColor, colors.secondaryColor) });
|
|
58
|
+
}
|
|
59
|
+
return (0, utils_1.generate)(target.icon, "svg-".concat(target.name), __assign({ className: className, onClick: onClick, style: style, 'data-icon': target.name, width: '1em', height: '1em', fill: 'currentColor', 'aria-hidden': 'true' }, restProps));
|
|
60
|
+
};
|
|
61
|
+
IconBase.displayName = 'IconReact';
|
|
62
|
+
IconBase.getTwoToneColors = getTwoToneColors;
|
|
63
|
+
IconBase.setTwoToneColors = setTwoToneColors;
|
|
64
|
+
exports.default = IconBase;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconBaseProps } from './Icon';
|
|
3
|
+
export interface CustomIconOptions {
|
|
4
|
+
scriptUrl?: string | string[];
|
|
5
|
+
extraCommonProps?: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface IconFontProps<T extends string = string> extends IconBaseProps {
|
|
10
|
+
type: T;
|
|
11
|
+
}
|
|
12
|
+
export default function create<T extends string = string>(options?: CustomIconOptions): React.FC<IconFontProps<T>>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var Icon_1 = __importDefault(require("./Icon"));
|
|
19
|
+
var customCache = new Set();
|
|
20
|
+
function isValidCustomScriptUrl(scriptUrl) {
|
|
21
|
+
return Boolean(typeof scriptUrl === 'string'
|
|
22
|
+
&& scriptUrl.length
|
|
23
|
+
&& !customCache.has(scriptUrl));
|
|
24
|
+
}
|
|
25
|
+
function createScriptUrlElements(scriptUrls, index) {
|
|
26
|
+
if (index === void 0) { index = 0; }
|
|
27
|
+
var currentScriptUrl = scriptUrls[index];
|
|
28
|
+
if (isValidCustomScriptUrl(currentScriptUrl)) {
|
|
29
|
+
var script = document.createElement('script');
|
|
30
|
+
script.setAttribute('src', currentScriptUrl);
|
|
31
|
+
script.setAttribute('data-namespace', currentScriptUrl);
|
|
32
|
+
if (scriptUrls.length > index + 1) {
|
|
33
|
+
script.onload = function () {
|
|
34
|
+
createScriptUrlElements(scriptUrls, index + 1);
|
|
35
|
+
};
|
|
36
|
+
script.onerror = function () {
|
|
37
|
+
createScriptUrlElements(scriptUrls, index + 1);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
customCache.add(currentScriptUrl);
|
|
41
|
+
document.body.appendChild(script);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
function create(options) {
|
|
45
|
+
if (options === void 0) { options = {}; }
|
|
46
|
+
var scriptUrl = options.scriptUrl, _a = options.extraCommonProps, extraCommonProps = _a === void 0 ? {} : _a;
|
|
47
|
+
/**
|
|
48
|
+
* DOM API required.
|
|
49
|
+
* Make sure in browser environment.
|
|
50
|
+
* The Custom Icon will create a <script/>
|
|
51
|
+
* that loads SVG symbols and insert the SVG Element into the document body.
|
|
52
|
+
*/
|
|
53
|
+
if (scriptUrl &&
|
|
54
|
+
typeof document !== 'undefined' &&
|
|
55
|
+
typeof window !== 'undefined' &&
|
|
56
|
+
typeof document.createElement === 'function') {
|
|
57
|
+
if (Array.isArray(scriptUrl)) {
|
|
58
|
+
// 因为iconfont资源会把svg插入before,所以前加载相同type会覆盖后加载,为了数组覆盖顺序,倒叙插入
|
|
59
|
+
createScriptUrlElements(scriptUrl.reverse());
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
createScriptUrlElements([scriptUrl]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
var Iconfont = react_1.default.forwardRef(function (props, ref) {
|
|
66
|
+
var type = props.type, children = props.children, restProps = __rest(props, ["type", "children"]);
|
|
67
|
+
// children > type
|
|
68
|
+
var content = null;
|
|
69
|
+
if (props.type) {
|
|
70
|
+
content = <use xlinkHref={"#".concat(type)}/>;
|
|
71
|
+
}
|
|
72
|
+
if (children) {
|
|
73
|
+
content = children;
|
|
74
|
+
}
|
|
75
|
+
return (<Icon_1.default {...extraCommonProps} {...restProps} ref={ref}>
|
|
76
|
+
{content}
|
|
77
|
+
</Icon_1.default>);
|
|
78
|
+
});
|
|
79
|
+
Iconfont.displayName = 'Iconfont';
|
|
80
|
+
return Iconfont;
|
|
81
|
+
}
|
|
82
|
+
exports.default = create;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { getTwoToneColor, TwoToneColor, setTwoToneColor } from './twoTonePrimaryColor';
|
|
3
|
+
import type { IconBaseProps } from './Icon';
|
|
4
|
+
import type { IconDefinition } from '@sensoro-design/icons-svg/lib/types';
|
|
5
|
+
export interface SensoroIconProps extends IconBaseProps {
|
|
6
|
+
twoToneColor?: TwoToneColor;
|
|
7
|
+
}
|
|
8
|
+
export interface IconComponentProps extends SensoroIconProps {
|
|
9
|
+
icon: IconDefinition;
|
|
10
|
+
}
|
|
11
|
+
interface IconBaseComponent<Props> extends React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLSpanElement>> {
|
|
12
|
+
getTwoToneColor: typeof getTwoToneColor;
|
|
13
|
+
setTwoToneColor: typeof setTwoToneColor;
|
|
14
|
+
}
|
|
15
|
+
declare const Icon: IconBaseComponent<IconComponentProps>;
|
|
16
|
+
export default Icon;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var react_1 = __importDefault(require("react"));
|
|
18
|
+
var classnames_1 = __importDefault(require("@pansy/classnames"));
|
|
19
|
+
var IconBase_1 = __importDefault(require("./IconBase"));
|
|
20
|
+
var twoTonePrimaryColor_1 = require("./twoTonePrimaryColor");
|
|
21
|
+
var utils_1 = require("../utils");
|
|
22
|
+
var Context_1 = __importDefault(require("./Context"));
|
|
23
|
+
// Initial setting
|
|
24
|
+
// should move it to antd main repo?
|
|
25
|
+
(0, twoTonePrimaryColor_1.setTwoToneColor)('#1890ff');
|
|
26
|
+
var Icon = react_1.default.forwardRef(function (props, ref) {
|
|
27
|
+
var _a;
|
|
28
|
+
var
|
|
29
|
+
// affect outter <i>...</i>
|
|
30
|
+
className = props.className,
|
|
31
|
+
// affect inner <svg>...</svg>
|
|
32
|
+
icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick,
|
|
33
|
+
// other
|
|
34
|
+
twoToneColor = props.twoToneColor, restProps = __rest(props, ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"]);
|
|
35
|
+
var _b = react_1.default.useContext(Context_1.default).prefixCls, prefixCls = _b === void 0 ? 'sen-icon' : _b;
|
|
36
|
+
var classString = (0, classnames_1.default)(prefixCls, (_a = {},
|
|
37
|
+
_a["".concat(prefixCls, "-").concat(icon.name)] = !!icon.name,
|
|
38
|
+
_a["".concat(prefixCls, "-spin")] = !!spin || icon.name === 'loading',
|
|
39
|
+
_a), className);
|
|
40
|
+
var iconTabIndex = tabIndex;
|
|
41
|
+
if (iconTabIndex === undefined && onClick) {
|
|
42
|
+
iconTabIndex = -1;
|
|
43
|
+
}
|
|
44
|
+
var svgStyle = rotate
|
|
45
|
+
? {
|
|
46
|
+
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
47
|
+
transform: "rotate(".concat(rotate, "deg)"),
|
|
48
|
+
}
|
|
49
|
+
: undefined;
|
|
50
|
+
var _c = (0, utils_1.normalizeTwoToneColors)(twoToneColor), primaryColor = _c[0], secondaryColor = _c[1];
|
|
51
|
+
return (<span role="img" aria-label={icon.name} {...restProps} ref={ref} tabIndex={iconTabIndex} onClick={onClick} className={classString}>
|
|
52
|
+
<IconBase_1.default icon={icon} primaryColor={primaryColor} secondaryColor={secondaryColor} style={svgStyle}/>
|
|
53
|
+
</span>);
|
|
54
|
+
});
|
|
55
|
+
Icon.displayName = 'AntdIcon';
|
|
56
|
+
Icon.getTwoToneColor = twoTonePrimaryColor_1.getTwoToneColor;
|
|
57
|
+
Icon.setTwoToneColor = twoTonePrimaryColor_1.setTwoToneColor;
|
|
58
|
+
exports.default = Icon;
|