@xola/ui-kit 2.2.0-2 → 3.0.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/README.md +20 -0
- package/build/style.css +1 -1
- package/build/ui-kit.es.js +10803 -0
- package/index.d.ts +174 -0
- package/package.json +36 -36
- package/tailwind.config.js +1 -1
- package/build/ui-kit.mjs +0 -11674
- package/build/ui-kit.umd.js +0 -31
package/index.d.ts
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// This is just to make the auto-import work.
|
|
2
|
+
// Next step is to add types for the props.
|
|
3
|
+
export {
|
|
4
|
+
AddSquareIcon,
|
|
5
|
+
Alert,
|
|
6
|
+
almostZero,
|
|
7
|
+
AnnounceIcon,
|
|
8
|
+
ArchiveIcon,
|
|
9
|
+
ArrowCcwIcon,
|
|
10
|
+
ArrowRightIcon,
|
|
11
|
+
ArrowTopRightIcon,
|
|
12
|
+
AtIcon,
|
|
13
|
+
Avatar,
|
|
14
|
+
Badge,
|
|
15
|
+
BalloonIcon,
|
|
16
|
+
BankCheckIcon,
|
|
17
|
+
BarGraphIcon,
|
|
18
|
+
BaseChartOptions,
|
|
19
|
+
BellIcon,
|
|
20
|
+
BookmarkIcon,
|
|
21
|
+
BoxIcon,
|
|
22
|
+
Breadcrumb,
|
|
23
|
+
Breakdown,
|
|
24
|
+
BriefcaseIcon,
|
|
25
|
+
Button,
|
|
26
|
+
ButtonGroup,
|
|
27
|
+
CakeIcon,
|
|
28
|
+
CalendarDayIcon,
|
|
29
|
+
CalendarIcon,
|
|
30
|
+
CalendarMonthIcon,
|
|
31
|
+
CalendarWeekIcon,
|
|
32
|
+
CapacityIcon,
|
|
33
|
+
CardAltIcon,
|
|
34
|
+
CardIcon,
|
|
35
|
+
CartIcon,
|
|
36
|
+
CashIcon,
|
|
37
|
+
Checkbox,
|
|
38
|
+
CheckIcon,
|
|
39
|
+
ChecklistIcon,
|
|
40
|
+
ChevronDownIcon,
|
|
41
|
+
ChevronLeftIcon,
|
|
42
|
+
ChevronRightIcon,
|
|
43
|
+
ChevronUpIcon,
|
|
44
|
+
ChipIcon,
|
|
45
|
+
CircleInfoIcon,
|
|
46
|
+
ClipboardIcon,
|
|
47
|
+
ClockAltIcon,
|
|
48
|
+
ClockIcon,
|
|
49
|
+
CloseCircleIcon,
|
|
50
|
+
CloseIcon,
|
|
51
|
+
CommentIcon,
|
|
52
|
+
CompassIcon,
|
|
53
|
+
CopyIcon,
|
|
54
|
+
Counter,
|
|
55
|
+
CrmIcon,
|
|
56
|
+
Currency,
|
|
57
|
+
DashboardIcon,
|
|
58
|
+
DatePicker,
|
|
59
|
+
DatePickerPopover,
|
|
60
|
+
DecreaseIcon,
|
|
61
|
+
DepositIcon,
|
|
62
|
+
DisabledIcon,
|
|
63
|
+
DisputeIcon,
|
|
64
|
+
Dot,
|
|
65
|
+
DotCircleIcon,
|
|
66
|
+
DownArrowIcon,
|
|
67
|
+
DownloadIcon,
|
|
68
|
+
Drawer,
|
|
69
|
+
EditIcon,
|
|
70
|
+
EllipsisIcon,
|
|
71
|
+
EmailIcon,
|
|
72
|
+
EmptyChecklistIcon,
|
|
73
|
+
EquipmentIcon,
|
|
74
|
+
ExportIcon,
|
|
75
|
+
EyeIcon,
|
|
76
|
+
FaceNeutralIcon,
|
|
77
|
+
FaceSadIcon,
|
|
78
|
+
FaceSmileIcon,
|
|
79
|
+
FlagIcon,
|
|
80
|
+
flash,
|
|
81
|
+
ForkIcon,
|
|
82
|
+
FormGroup,
|
|
83
|
+
FunnelIcon,
|
|
84
|
+
getSymbol,
|
|
85
|
+
GiftIcon,
|
|
86
|
+
HandIcon,
|
|
87
|
+
HeaderToolbar,
|
|
88
|
+
HiddenIcon,
|
|
89
|
+
HistogramOptions,
|
|
90
|
+
ImageIcon,
|
|
91
|
+
ImageUpload,
|
|
92
|
+
InfinityIcon,
|
|
93
|
+
Input,
|
|
94
|
+
InvoiceIcon,
|
|
95
|
+
isOSX,
|
|
96
|
+
isZeroDecimal,
|
|
97
|
+
Key,
|
|
98
|
+
KeyIcon,
|
|
99
|
+
Label,
|
|
100
|
+
LandscapeIcon,
|
|
101
|
+
LinkIcon,
|
|
102
|
+
LockIcon,
|
|
103
|
+
Login,
|
|
104
|
+
Logo,
|
|
105
|
+
MagicIcon,
|
|
106
|
+
MegaphoneIcon,
|
|
107
|
+
MenuIcon,
|
|
108
|
+
MixedChecklistIcon,
|
|
109
|
+
Modal,
|
|
110
|
+
MoneyAddIcon,
|
|
111
|
+
MoneyBackIcon,
|
|
112
|
+
MoneyIcon,
|
|
113
|
+
Number,
|
|
114
|
+
numberFormat,
|
|
115
|
+
PauseIcon,
|
|
116
|
+
PenIcon,
|
|
117
|
+
Phone,
|
|
118
|
+
PhoneIcon,
|
|
119
|
+
PieOptions,
|
|
120
|
+
PiggyBankIcon,
|
|
121
|
+
PinIcon,
|
|
122
|
+
PipeIcon,
|
|
123
|
+
PlusIcon,
|
|
124
|
+
Popover,
|
|
125
|
+
PopoverList,
|
|
126
|
+
PrintIcon,
|
|
127
|
+
ProductsIcon,
|
|
128
|
+
QuestionnaireIcon,
|
|
129
|
+
RangeSlider,
|
|
130
|
+
ReceiptIcon,
|
|
131
|
+
RefreshIcon,
|
|
132
|
+
RelativeDateRange,
|
|
133
|
+
RosterIcon,
|
|
134
|
+
RoundedSquareIcon,
|
|
135
|
+
roundNumber,
|
|
136
|
+
RulerIcon,
|
|
137
|
+
Search,
|
|
138
|
+
SearchAltIcon,
|
|
139
|
+
SearchIcon,
|
|
140
|
+
Select,
|
|
141
|
+
SendIcon,
|
|
142
|
+
ServiceIcon,
|
|
143
|
+
SettingsIcon,
|
|
144
|
+
ShapesIcon,
|
|
145
|
+
ShareIcon,
|
|
146
|
+
ShirtIcon,
|
|
147
|
+
Sidebar,
|
|
148
|
+
Skeleton,
|
|
149
|
+
Spinner,
|
|
150
|
+
SplitPaymentIcon,
|
|
151
|
+
SquareIcon,
|
|
152
|
+
StackIcon,
|
|
153
|
+
StarIcon,
|
|
154
|
+
StoreCreditIcon,
|
|
155
|
+
Switch,
|
|
156
|
+
Table,
|
|
157
|
+
Tabs,
|
|
158
|
+
Tag,
|
|
159
|
+
Textarea,
|
|
160
|
+
theme,
|
|
161
|
+
TicketIcon,
|
|
162
|
+
Tooltip,
|
|
163
|
+
TrashIcon,
|
|
164
|
+
UnlinkIcon,
|
|
165
|
+
UserAddIcon,
|
|
166
|
+
UserIcon,
|
|
167
|
+
VeteranIcon,
|
|
168
|
+
VoucherIcon,
|
|
169
|
+
WaitlistIcon,
|
|
170
|
+
WarningIcon,
|
|
171
|
+
WifiIcon,
|
|
172
|
+
WriteIcon,
|
|
173
|
+
XrayIcon,
|
|
174
|
+
} from "./build/ui-kit.es";
|
package/package.json
CHANGED
|
@@ -1,54 +1,53 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xola/ui-kit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Xola UI Kit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"build",
|
|
8
8
|
"index.css",
|
|
9
9
|
"tailwind.config.js",
|
|
10
|
-
"postcss.config.js"
|
|
10
|
+
"postcss.config.js",
|
|
11
|
+
"index.d.ts"
|
|
11
12
|
],
|
|
12
|
-
"main": "build/ui-kit.
|
|
13
|
-
"module": "build/ui-kit.
|
|
14
|
-
"types": "build/
|
|
13
|
+
"main": "build/ui-kit.es.js",
|
|
14
|
+
"module": "build/ui-kit.es",
|
|
15
|
+
"types": "build/index.d.ts",
|
|
15
16
|
"scripts": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"predev": "node scripts/prepare",
|
|
22
|
-
"dev": "start-storybook -p 6006 --no-open --no-manager-cache",
|
|
17
|
+
"prepare": "node scripts/prepare && vite build",
|
|
18
|
+
"start": "node scripts/prepare && start-storybook -p 6006 -s public --no-open",
|
|
19
|
+
"dev": "node scripts/prepare && start-storybook -p 6006 -s public --no-manager-cache --no-open",
|
|
20
|
+
"build": "node scripts/prepare && vite build && cp index.d.ts build",
|
|
21
|
+
"build:storybook": "node scripts/prepare && build-storybook -s public",
|
|
23
22
|
"clean": "rm -rf node_modules/.vite",
|
|
24
|
-
"lint:fix": "xola-lint
|
|
25
|
-
"lint:report": "xola-lint
|
|
26
|
-
"format": "prettier --write src",
|
|
23
|
+
"lint:fix": "xola-lint src --fix",
|
|
24
|
+
"lint:report": "xola-lint src --reporter=json src > eslint_report.json",
|
|
25
|
+
"format": "prettier -l --write src",
|
|
27
26
|
"test": "jest",
|
|
28
|
-
"
|
|
29
|
-
"chromatic": "chromatic --exit-zero-on-changes --build-script-name build:storybook",
|
|
30
|
-
"prepublish": "npm run build",
|
|
31
|
-
"publish": "np --no-tests --any-branch"
|
|
27
|
+
"chromatic": "chromatic --exit-zero-on-changes --build-script-name build:storybook"
|
|
32
28
|
},
|
|
33
29
|
"dependencies": {
|
|
34
30
|
"@headlessui/react": "^1.4.0",
|
|
35
|
-
"@tailwindcss/forms": "^0.
|
|
31
|
+
"@tailwindcss/forms": "^0.5.6",
|
|
36
32
|
"@tailwindcss/line-clamp": "^0.3.1",
|
|
37
33
|
"@tippyjs/react": "^4.2.6",
|
|
38
|
-
"clsx": "^1.
|
|
39
|
-
"dayjs": "^1.10
|
|
34
|
+
"clsx": "^1.2.1",
|
|
35
|
+
"dayjs": "^1.11.10",
|
|
40
36
|
"downshift": "^6.1.5",
|
|
41
37
|
"get-user-locale": "^1.4.0",
|
|
42
38
|
"google-libphonenumber": "^3.2.22",
|
|
39
|
+
"lodash": "^4.17.21",
|
|
43
40
|
"nouislider-react": "^3.4.1",
|
|
44
|
-
"prop-types": "^15.
|
|
41
|
+
"prop-types": "^15.8.1",
|
|
42
|
+
"react": "^18.2.0",
|
|
45
43
|
"react-day-picker": "^7.4.10",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
46
45
|
"react-hot-toast": "^2.1.0",
|
|
47
46
|
"react-hotkeys-hook": "^3.4.0",
|
|
48
47
|
"react-json-view": "^1.21.3",
|
|
49
48
|
"react-select": "^5.7.0",
|
|
50
49
|
"storybook-addon-designs": "^6.3.1",
|
|
51
|
-
"tippy.js": "^6.3.
|
|
50
|
+
"tippy.js": "^6.3.7"
|
|
52
51
|
},
|
|
53
52
|
"devDependencies": {
|
|
54
53
|
"@babel/core": "^7.14.8",
|
|
@@ -60,30 +59,31 @@
|
|
|
60
59
|
"@storybook/addons": "^6.5.10",
|
|
61
60
|
"@storybook/react": "^6.5.10",
|
|
62
61
|
"@storybook/theming": "^6.5.10",
|
|
63
|
-
"@
|
|
62
|
+
"@types/react": "^18.2.22",
|
|
63
|
+
"@types/react-dom": "^18.2.7",
|
|
64
|
+
"@xola/jslint": "^2.2.1",
|
|
64
65
|
"autoprefixer": "^10.4.5",
|
|
65
66
|
"babel-jest": "^27.2.0",
|
|
66
67
|
"babel-loader": "^8.2.2",
|
|
67
68
|
"chromatic": "^6.11.4",
|
|
68
|
-
"jest": "^
|
|
69
|
-
"lodash": "^4.17.21",
|
|
69
|
+
"jest": "^29.7.0",
|
|
70
70
|
"postcss": "^8.4.5",
|
|
71
|
-
"prettier": "
|
|
72
|
-
"prettier-plugin-tailwindcss": "^0.
|
|
73
|
-
"react": "^17.0.2",
|
|
74
|
-
"react-dom": "^17.0.2",
|
|
71
|
+
"prettier": "2.8",
|
|
72
|
+
"prettier-plugin-tailwindcss": "^0.4.1",
|
|
75
73
|
"storybook-css-modules-preset": "^1.1.1",
|
|
76
74
|
"tailwindcss": "^3.1.8",
|
|
77
75
|
"typescript": "4.7",
|
|
78
|
-
"vite": "
|
|
76
|
+
"vite": "3.2"
|
|
79
77
|
},
|
|
80
78
|
"peerDependencies": {
|
|
79
|
+
"@types/react": "^18.2.22",
|
|
80
|
+
"@types/react-dom": "^18.2.7",
|
|
81
81
|
"autoprefixer": "^10.3.1",
|
|
82
|
-
"lodash": "^4.17.21",
|
|
83
82
|
"postcss": "^8.3.6",
|
|
84
|
-
"react": "^
|
|
85
|
-
"react-dom": "^
|
|
86
|
-
"tailwindcss": "^3.
|
|
83
|
+
"react": "^18.2.0",
|
|
84
|
+
"react-dom": "^18.2.0",
|
|
85
|
+
"tailwindcss": "^3.1.8",
|
|
86
|
+
"vite": "3.2"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=16"
|