Skip to content

Commit

Permalink
Fix to include component names in the built package for very basic au…
Browse files Browse the repository at this point in the history
…to-complete (#276)

* Update types and copy it over to build folder so it actually works

* Add missing components, remove useless ones
  • Loading branch information
rushi authored Oct 19, 2023
1 parent 0aa989f commit e331ab6
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 9 deletions.
106 changes: 98 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
// This is just to make the auto-import work.
// Next step is to add types for the props.
export {
AccountIcon,
AddNoteIcon,
AddSquareIcon,
Alert,
almostZero,
AnnounceIcon,
AppIcon,
ArchiveIcon,
ArrowCcwIcon,
ArrowCwIcon,
ArrowDownIcon,
ArrowRightIcon,
ArrowTopRightIcon,
ArrowUpIcon,
AtIcon,
Avatar,
Badge,
BalloonIcon,
BankCheckIcon,
BarGraphIcon,
BaseChartOptions,
BaseInput,
BellIcon,
BookmarkIcon,
BoxIcon,
Breadcrumb,
Breakdown,
BriefcaseIcon,
Button,
ButtonCodeIcon,
ButtonGroup,
CakeIcon,
CalendarDayIcon,
Expand All @@ -35,25 +42,46 @@ export {
CartIcon,
CashIcon,
Checkbox,
CheckboxIcon,
CheckIcon,
ChecklistIcon,
ChevronDownIcon,
ChevronLeftIcon,
ChevronRightIcon,
ChevronUpIcon,
ChipIcon,
CircleCheckIcon,
CircleCrossIcon,
CircleCrownIcon,
CircleDollarIcon,
CircleDotIcon,
CircleInfinityIcon,
CircleInfoIcon,
CircleKeyIcon,
CircleNotch,
CirclePauseIcon,
CirclePlusIcon,
CircleSubtractIcon,
ClipboardIcon,
ClockAltIcon,
ClockIcon,
ClockManualIcon,
CloseCircleIcon,
CloseIcon,
CollapseIcon,
ComboBox,
CommentAltIcon,
CommentIcon,
compactNumber,
CompassIcon,
CopyIcon,
Counter,
CouponIcon,
CrmIcon,
CrownIcon,
Currency,
DashboardIcon,
dateFromObjectId,
DatePicker,
DatePickerPopover,
DecreaseIcon,
Expand All @@ -62,75 +90,115 @@ export {
DisputeIcon,
Dot,
DotCircleIcon,
DoubleCheckIcon,
DownArrowIcon,
DownloadIcon,
Drawer,
DropdownIcon,
DumbbellIcon,
DuplicateIcon,
DurationIcon,
EditIcon,
EditNoteIcon,
EditNotesIcon,
EllipsisIcon,
EmailCheckedIcon,
EmailIcon,
EmailResendIcon,
EmailSendIcon,
EmptyChecklistIcon,
EquipmentIcon,
ExportIcon,
EyeClosedIcon,
EyeIcon,
FaceNeutralIcon,
FaceSadIcon,
FaceSmileIcon,
FadeIn,
FilterIcon,
FilterIconOld,
FlagIcon,
flash,
FlexFee2Icon,
FlexFeeIcon,
FoodIcon,
ForkIcon,
formatDate,
formatTime,
FormGroup,
FunnelIcon,
getChildByType,
getChildrenByType,
getInitials,
getSymbol,
GiftIcon,
GlobeIcon,
HandIcon,
HandshakeIcon,
HeaderToolbar,
HelpCenterIcon,
HiddenIcon,
HiddenIcon,
HistogramOptions,
StoreCreditIcon,
HouseIcon,
ImageIcon,
ImageUpload,
InfinityIcon,
CircleInfoIcon,
InlineValuePopover,
Input,
InvoiceIcon,
isOSX,
isZeroDecimal,
Key,
KeyIcon,
KioskIcon,
Label,
LabelIcon,
LandscapeIcon,
LightIcon,
LinkIcon,
LockIcon,
Login,
Logo,
LogoutIcon,
MagicIcon,
MedicalIcon,
MegaphoneIcon,
MenuIcon,
MinusIcon,
MixedChecklistIcon,
MobileIcon,
Modal,
MoneyAddIcon,
MoneyBackIcon,
MoneyIcon,
MountainIcon,
MouseIcon,
Number,
numberFormat,
PassIcon,
PauseIcon,
PenIcon,
Phone,
PhoneIcon,
PieOptions,
PhotosIcon,
PiggyBankIcon,
PinIcon,
PipeIcon,
PlusIcon,
PolicyIcon,
Popover,
PopoverList,
PrintIcon,
ProductsIcon,
Provider,
QuestionIcon,
QuestionnaireIcon,
RangeSlider,
ReceiptIcon,
RelativeDateRange,
ReceptionBellIcon,
ReceptionBellMoneyIcon,
RefreshIcon,
RefundIcon,
RelativeDateRange,
RosterIcon,
RoundedSquareIcon,
roundNumber,
Expand All @@ -140,36 +208,58 @@ export {
SearchIcon,
Select,
SendIcon,
SeniorIcon,
SeniorV2Icon,
SeniorV3Icon,
ServiceIcon,
SettingsIcon,
ShapesIcon,
ShareIcon,
ShirtIcon,
ShoppingBagIcon,
Sidebar,
Skeleton,
SlideDown,
Spinner,
SplitPaymentIcon,
SquareIcon,
StackIcon,
StarFilledIcon,
StarIcon,
StoreCreditIcon,
SubmitButton,
Switch,
Table,
Tabs,
Tag,
TaxIcon,
Textarea,
theme,
ThumbsDownIcon,
ThumbsUpIcon,
TicketIcon,
ToggleButton,
Tooltip,
TransferArrowIcon,
TrashIcon,
UnlinkIcon,
useId,
useIsClient,
UserAddIcon,
UserChangedIcon,
UserIcon,
UserSubtractIcon,
ValuePopoverText,
VeteranIcon,
ViewNotesIcon,
VoucherIcon,
WaitlistIcon,
WarningDiamondIcon,
WarningIcon,
WarningTriangleIcon,
WeightIcon,
WifiIcon,
WriteIcon,
XolaBotIcon,
XrayIcon,
ImageUpload,
} from "./build/ui-kit.umd";
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"files": [
"build",
"index.css",
"index.d.ts",
"tailwind.config.js",
"postcss.config.js"
],
Expand All @@ -17,7 +18,7 @@
"start": "node scripts/prepare && start-storybook -p 6006 -s public",
"dev": "node scripts/prepare && start-storybook -p 6006 -s public --no-manager-cache",
"storybook": "node scripts/prepare && start-storybook -p 6006 -s public",
"build": "node scripts/prepare && vite build",
"build": "node scripts/prepare && vite build && cp index.d.ts build",
"watch": "npm run build -- --watch",
"clean": "rm -rf node_modules/.vite",
"build:storybook": "node scripts/prepare && build-storybook -s public",
Expand Down

0 comments on commit e331ab6

Please sign in to comment.