@xola/ui-kit 3.0.4 → 3.0.8

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/index.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap");
1
+ @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
2
2
  @import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400;700&display=swap");
3
3
 
4
4
  @tailwind base;
@@ -6,11 +6,28 @@
6
6
  @tailwind utilities;
7
7
 
8
8
  @layer base {
9
+ :root {
10
+ /* https://rsms.me/inter/#usage */
11
+ font-feature-settings:
12
+ "liga" 1,
13
+ "calt" 1; /* fix for Chrome */
14
+ }
15
+
9
16
  html {
10
17
  /* Never change this default! */
11
18
  @apply text-black text-base;
12
19
  }
13
20
 
21
+ /* For testing advanced typographic features */
22
+ .font-ligatures {
23
+ font-feature-settings:
24
+ "liga" 1,
25
+ "calt" 1,
26
+ "dlig" 1,
27
+ "ss03" 1,
28
+ "ss02" 1 !important;
29
+ }
30
+
14
31
  a {
15
32
  @apply text-primary hover:underline;
16
33
  }
package/index.d.ts CHANGED
@@ -1,265 +1,72 @@
1
1
  // This is just to make the auto-import work.
2
2
  // Next step is to add types for the props.
3
3
  export {
4
- AccountIcon,
5
- AddNoteIcon,
6
- AddSquareIcon,
7
4
  Alert,
8
5
  almostZero,
9
- AnnounceIcon,
10
- AppIcon,
11
- ArchiveIcon,
12
- ArrowCcwIcon,
13
- ArrowCwIcon,
14
- ArrowDownIcon,
15
- ArrowRightIcon,
16
- ArrowTopRightIcon,
17
- ArrowUpIcon,
18
- AtIcon,
6
+ AppStoreBadge,
19
7
  Avatar,
20
8
  Badge,
21
- BalloonIcon,
22
- BankCheckIcon,
23
- BarGraphIcon,
24
- BaseInput,
25
- BellIcon,
26
- BookmarkIcon,
27
- BoxIcon,
28
9
  Breadcrumb,
29
10
  Breakdown,
30
- BriefcaseIcon,
31
11
  Button,
32
- ButtonCodeIcon,
33
12
  ButtonGroup,
34
- CakeIcon,
35
- CalendarDayIcon,
36
- CalendarIcon,
37
- CalendarMonthIcon,
38
- CalendarWeekIcon,
39
- CapacityIcon,
40
- CardAltIcon,
41
- CardIcon,
42
- CartIcon,
43
- CashIcon,
44
13
  Checkbox,
45
- CheckboxIcon,
46
- CheckIcon,
47
- ChecklistIcon,
48
- ChevronDownIcon,
49
- ChevronLeftIcon,
50
- ChevronRightIcon,
51
- ChevronUpIcon,
52
- ChipIcon,
53
- CircleCheckIcon,
54
- CircleCrossIcon,
55
- CircleCrownIcon,
56
- CircleDollarIcon,
57
- CircleDotIcon,
58
- CircleInfinityIcon,
59
- CircleInfoIcon,
60
- CircleKeyIcon,
61
14
  CircleNotch,
62
- CirclePauseIcon,
63
- CirclePlusIcon,
64
- CircleSubtractIcon,
65
- ClipboardIcon,
66
- ClockAltIcon,
67
- ClockIcon,
68
- ClockManualIcon,
69
- CloseCircleIcon,
70
- CloseIcon,
71
- CollapseIcon,
72
15
  ComboBox,
73
- CommentAltIcon,
74
- CommentIcon,
75
16
  compactNumber,
76
- CompassIcon,
77
- CopyIcon,
78
17
  Counter,
79
- CouponIcon,
80
- CrmIcon,
81
- CrownIcon,
82
18
  Currency,
83
- DashboardIcon,
84
19
  dateFromObjectId,
85
20
  DatePicker,
86
21
  DatePickerPopover,
87
- DecreaseIcon,
88
- DepositIcon,
89
- DisabledIcon,
90
- DisputeIcon,
91
22
  Dot,
92
- DotCircleIcon,
93
- DoubleCheckIcon,
94
- DownArrowIcon,
95
- DownloadIcon,
23
+ DotProgress,
96
24
  Drawer,
97
- DropdownIcon,
98
- DumbbellIcon,
99
- DuplicateIcon,
100
- DurationIcon,
101
- EditIcon,
102
- EditNoteIcon,
103
- EditNotesIcon,
104
- EllipsisIcon,
105
- EmailCheckedIcon,
106
- EmailIcon,
107
- EmailResendIcon,
108
- EmailSendIcon,
109
- EmptyChecklistIcon,
110
- EquipmentIcon,
111
- ExportIcon,
112
- EyeClosedIcon,
113
- EyeIcon,
114
- FaceNeutralIcon,
115
- FaceSadIcon,
116
- FaceSmileIcon,
117
25
  FadeIn,
118
- FilterIcon,
119
- FilterIconOld,
120
- FlagIcon,
121
26
  flash,
122
- FlexFee2Icon,
123
- FlexFeeIcon,
124
- FoodIcon,
125
- ForkIcon,
126
27
  formatDate,
127
28
  formatTime,
128
29
  FormGroup,
129
- FunnelIcon,
130
30
  getChildByType,
131
31
  getChildrenByType,
132
32
  getInitials,
133
33
  getSymbol,
134
- GiftIcon,
135
- GlobeIcon,
136
- HandIcon,
137
- HandshakeIcon,
138
34
  HeaderToolbar,
139
- HelpCenterIcon,
140
- HiddenIcon,
141
- HouseIcon,
142
- ImageIcon,
143
35
  ImageUpload,
144
- InfinityIcon,
145
36
  InlineValuePopover,
146
37
  Input,
147
- InvoiceIcon,
148
38
  isOSX,
149
39
  isZeroDecimal,
150
40
  Key,
151
- KeyIcon,
152
- KioskIcon,
153
41
  Label,
154
- LabelIcon,
155
- LandscapeIcon,
156
- LightIcon,
157
- LinkIcon,
158
- LockIcon,
159
42
  Login,
160
43
  Logo,
161
- LogoutIcon,
162
- MagicIcon,
163
- MedicalIcon,
164
- MegaphoneIcon,
165
- MenuIcon,
166
- MinusIcon,
167
- MixedChecklistIcon,
168
- MobileIcon,
169
44
  Modal,
170
- MoneyAddIcon,
171
- MoneyBackIcon,
172
- MoneyIcon,
173
- MountainIcon,
174
- MouseIcon,
175
45
  Number,
176
46
  numberFormat,
177
- PassIcon,
178
- PauseIcon,
179
- PenIcon,
180
47
  Phone,
181
- PhoneIcon,
182
- PhotosIcon,
183
- PiggyBankIcon,
184
- PinIcon,
185
- PipeIcon,
186
- PlusIcon,
187
- PolicyIcon,
48
+ PlayMarketBadge,
188
49
  Popover,
189
50
  PopoverList,
190
- PrintIcon,
191
- ProductsIcon,
192
51
  Provider,
193
- QuestionIcon,
194
- QuestionnaireIcon,
195
52
  RangeSlider,
196
- ReceiptIcon,
197
- ReceptionBellIcon,
198
- ReceptionBellMoneyIcon,
199
- RefreshIcon,
200
- RefundIcon,
201
53
  RelativeDateRange,
202
- RosterIcon,
203
- RoundedSquareIcon,
204
54
  roundNumber,
205
- RulerIcon,
206
55
  Search,
207
- SearchAltIcon,
208
- SearchIcon,
209
56
  Select,
210
- SendIcon,
211
- SeniorIcon,
212
- SeniorV2Icon,
213
- SeniorV3Icon,
214
- ServiceIcon,
215
- SettingsIcon,
216
- ShapesIcon,
217
- ShareIcon,
218
- ShirtIcon,
219
- ShoppingBagIcon,
220
57
  Sidebar,
221
58
  Skeleton,
222
59
  SlideDown,
223
60
  Spinner,
224
- SplitPaymentIcon,
225
- SquareIcon,
226
- StackIcon,
227
- StarFilledIcon,
228
- StarIcon,
229
- StoreCreditIcon,
230
61
  SubmitButton,
231
62
  Switch,
232
63
  Table,
233
64
  Tabs,
234
65
  Tag,
235
- TaxIcon,
236
66
  Textarea,
237
67
  theme,
238
- ThumbsDownIcon,
239
- ThumbsUpIcon,
240
- TicketIcon,
241
- ToggleButton,
242
68
  Tooltip,
243
- TransferArrowIcon,
244
- TrashIcon,
245
- UnlinkIcon,
246
- useId,
69
+ ToggleButton,
247
70
  useIsClient,
248
- UserAddIcon,
249
- UserChangedIcon,
250
- UserIcon,
251
- UserSubtractIcon,
252
- ValuePopoverText,
253
- VeteranIcon,
254
- ViewNotesIcon,
255
- VoucherIcon,
256
- WaitlistIcon,
257
- WarningDiamondIcon,
258
- WarningIcon,
259
- WarningTriangleIcon,
260
- WeightIcon,
261
- WifiIcon,
262
- WriteIcon,
263
- XolaBotIcon,
264
- XrayIcon,
71
+ useViewportHeight,
265
72
  } from "./build/ui-kit.es";
package/package.json CHANGED
@@ -1,53 +1,60 @@
1
1
  {
2
2
  "name": "@xola/ui-kit",
3
- "version": "3.0.4",
3
+ "version": "3.0.8",
4
4
  "description": "Xola UI Kit",
5
5
  "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git://github.com/xola/ui-kit.git"
9
+ },
6
10
  "files": [
7
11
  "build",
8
12
  "index.css",
13
+ "index.d.ts",
9
14
  "tailwind.config.js",
10
15
  "postcss.config.js",
11
- "index.d.ts"
16
+ "ui-kit.es.js"
12
17
  ],
13
18
  "main": "build/ui-kit.es.js",
14
- "module": "build/ui-kit.es",
19
+ "module": "build/ui-kit.es.js",
15
20
  "types": "build/index.d.ts",
16
21
  "scripts": {
17
22
  "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
+ "start": "./scripts/storybook",
24
+ "dev": "./scripts/storybook start --no-manager-cache",
25
+ "build": "npm run prepare && vite build && cp index.d.ts build",
26
+ "build:storybook": "npm run build && ./scripts/storybook build",
22
27
  "clean": "rm -rf node_modules/.vite",
28
+ "lint": "xola-lint src",
23
29
  "lint:fix": "xola-lint src --fix",
24
30
  "lint:report": "xola-lint src --reporter=json src > eslint_report.json",
25
31
  "format": "prettier -l --write src",
26
- "test": "jest",
32
+ "test": "vitest run",
27
33
  "chromatic": "chromatic --exit-zero-on-changes --build-script-name build:storybook"
28
34
  },
29
35
  "dependencies": {
30
- "@headlessui/react": "^1.4.0",
36
+ "@headlessui/react": "1.6",
31
37
  "@tailwindcss/forms": "^0.5.6",
32
- "@tailwindcss/line-clamp": "^0.3.1",
38
+ "@tailwindcss/line-clamp": "^0.4.4",
33
39
  "@tippyjs/react": "^4.2.6",
34
40
  "clsx": "^1.2.1",
35
- "dayjs": "^1.11.10",
36
- "downshift": "^6.1.5",
37
- "get-user-locale": "^1.4.0",
38
- "google-libphonenumber": "^3.2.22",
39
- "lodash": "^4.17.21",
41
+ "dayjs": "^1.11.13",
42
+ "downshift": "^6.1.12",
43
+ "get-user-locale": "^1.5.1",
44
+ "google-libphonenumber": "^3.2.39",
45
+ "lodash-es": "^4.17.21",
40
46
  "nouislider-react": "^3.4.1",
41
47
  "prop-types": "^15.8.1",
42
- "react": "^18.2.0",
48
+ "react": "^18.3.1",
43
49
  "react-day-picker": "^7.4.10",
44
- "react-dom": "^18.2.0",
45
- "react-hot-toast": "^2.1.0",
46
- "react-hotkeys-hook": "^3.4.0",
47
- "react-select": "^5.7.0",
48
- "react18-json-view": "^0.2.6",
50
+ "react-dom": "^18.3.1",
51
+ "react-hot-toast": "^2.4.1",
52
+ "react-hotkeys-hook": "^3.4.7",
53
+ "react-select": "^5.8.1",
54
+ "react-textarea-autosize": "^8.5.3",
55
+ "react18-json-view": "^0.2.8",
49
56
  "storybook-addon-designs": "^6.3.1",
50
- "tailwind-merge": "^2.0.0",
57
+ "tailwind-merge": "^2.5.5",
51
58
  "tippy.js": "^6.3.7"
52
59
  },
53
60
  "devDependencies": {
@@ -58,36 +65,36 @@
58
65
  "@storybook/addon-links": "^6.5.10",
59
66
  "@storybook/addon-postcss": "^2.0.0",
60
67
  "@storybook/addons": "^6.5.10",
68
+ "@storybook/builder-webpack5": "^6.5.16",
69
+ "@storybook/manager-webpack5": "^6.5.16",
61
70
  "@storybook/react": "^6.5.10",
62
71
  "@storybook/theming": "^6.5.10",
63
- "@types/react": "^18.2.22",
64
- "@types/react-dom": "^18.2.7",
65
- "@xola/jslint": "^2.2.1",
72
+ "@types/react": "^18.3.8",
73
+ "@types/react-dom": "^18.3.0",
74
+ "@xola/jslint": "^3.0.1",
66
75
  "autoprefixer": "^10.4.5",
67
- "babel-jest": "^27.2.0",
68
76
  "babel-loader": "^8.2.2",
69
77
  "chromatic": "^6.11.4",
70
- "jest": "^29.7.0",
71
78
  "postcss": "^8.4.5",
72
- "prettier": "2.8",
79
+ "prettier": "^3.3.3",
73
80
  "prettier-plugin-tailwindcss": "^0.4.1",
74
81
  "storybook-css-modules-preset": "^1.1.1",
75
82
  "tailwindcss": "^3.1.8",
76
83
  "typescript": "4.7",
77
- "vite": "3.2"
84
+ "vite": "^5.4.11",
85
+ "vitest": "^2.1.1",
86
+ "webpack": "^5.97.1"
78
87
  },
79
88
  "peerDependencies": {
80
89
  "@types/react": "^18.2.22",
81
90
  "@types/react-dom": "^18.2.7",
82
91
  "autoprefixer": "^10.3.1",
83
92
  "postcss": "^8.3.6",
84
- "react": "^18.2.0",
85
- "react-dom": "^18.2.0",
86
93
  "tailwindcss": "^3.1.8",
87
- "vite": "3.2"
94
+ "vite": "^5.4.11"
88
95
  },
89
96
  "engines": {
90
- "node": ">=16"
97
+ "node": ">=18"
91
98
  },
92
99
  "prettier": {
93
100
  "semi": true,
@@ -103,6 +103,7 @@ const spacing = {
103
103
  48: "192px",
104
104
  50: "200px",
105
105
  52: "208px",
106
+ 54: "216px",
106
107
  56: "224px",
107
108
  60: "240px",
108
109
  64: "256px",
@@ -110,10 +111,11 @@ const spacing = {
110
111
  72: "288px",
111
112
  75: "300px",
112
113
  80: "320px",
113
- 82: "350px",
114
+ 85: "340px",
114
115
  96: "384px",
115
116
  100: "400px",
116
117
  105: "420px",
118
+ 110: "440px",
117
119
  125: "500px",
118
120
  150: "600px",
119
121
  140: "560px",
@@ -170,7 +172,7 @@ module.exports = {
170
172
  // Figma: https://www.figma.com/file/tL2vrxuBIzujkDfYvVjUhs/%F0%9F%9B%A0-Xola-DS-Desktop-Master-%F0%9F%9B%A0?node-id=1885%3A51905
171
173
  extend: {
172
174
  fontFamily: {
173
- sans: ["Inter", ...defaultTheme.fontFamily.sans],
175
+ sans: ["InterVariable", "Inter", ...defaultTheme.fontFamily.sans],
174
176
  mono: ["Roboto Mono", ...defaultTheme.fontFamily.mono],
175
177
  },
176
178
 
@@ -219,5 +221,5 @@ module.exports = {
219
221
  },
220
222
  },
221
223
 
222
- plugins: [require("@tailwindcss/forms")],
224
+ plugins: [require("@tailwindcss/forms"), require("@tailwindcss/line-clamp")],
223
225
  };