@inshorts/glint-ui 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -12,7 +12,9 @@ export { CopyButton } from './copy-button.cjs';
12
12
  export { DataTable, DataTableProps, TableColumn } from './data-table.cjs';
13
13
  export { DateRangePicker, DateRangePickerProps, DateRangeValue } from './date-range-picker/index.cjs';
14
14
  export { IsoDate, addDays, addMonths, createdRangeMs, endAt2359Ms, endOfDayMs, formatDisplay, fromIsoDate, isSameDay, monthGrid, monthLabel, startOfDayMs, startOfMonth, toIsoDate } from './date-range-picker/dateRange.cjs';
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.cjs';
15
16
  export { useDialogLayer } from './dialogLayer.cjs';
17
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './dropdown-menu.cjs';
16
18
  export { FeatureAccessGate } from './feature-access-gate.cjs';
17
19
  export { Field } from './field.cjs';
18
20
  export { ImageUploader, ImageUploaderProps } from './image-uploader.cjs';
@@ -38,4 +40,6 @@ export { cn } from './utils.cjs';
38
40
  import 'class-variance-authority/types';
39
41
  import 'react';
40
42
  import 'class-variance-authority';
43
+ import '@radix-ui/react-dialog';
44
+ import '@radix-ui/react-dropdown-menu';
41
45
  import 'clsx';
package/dist/index.d.ts CHANGED
@@ -12,7 +12,9 @@ export { CopyButton } from './copy-button.js';
12
12
  export { DataTable, DataTableProps, TableColumn } from './data-table.js';
13
13
  export { DateRangePicker, DateRangePickerProps, DateRangeValue } from './date-range-picker/index.js';
14
14
  export { IsoDate, addDays, addMonths, createdRangeMs, endAt2359Ms, endOfDayMs, formatDisplay, fromIsoDate, isSameDay, monthGrid, monthLabel, startOfDayMs, startOfMonth, toIsoDate } from './date-range-picker/dateRange.js';
15
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from './dialog.js';
15
16
  export { useDialogLayer } from './dialogLayer.js';
17
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './dropdown-menu.js';
16
18
  export { FeatureAccessGate } from './feature-access-gate.js';
17
19
  export { Field } from './field.js';
18
20
  export { ImageUploader, ImageUploaderProps } from './image-uploader.js';
@@ -38,4 +40,6 @@ export { cn } from './utils.js';
38
40
  import 'class-variance-authority/types';
39
41
  import 'react';
40
42
  import 'class-variance-authority';
43
+ import '@radix-ui/react-dialog';
44
+ import '@radix-ui/react-dropdown-menu';
41
45
  import 'clsx';
package/dist/index.js CHANGED
@@ -1,4 +1,7 @@
1
1
  "use client";
2
+ import {
3
+ Switch
4
+ } from "./chunk-ZHATD73Y.js";
2
5
  import {
3
6
  Table,
4
7
  TableBody,
@@ -35,6 +38,13 @@ import {
35
38
  startOfMonth,
36
39
  toIsoDate
37
40
  } from "./chunk-MUPW2TFJ.js";
41
+ import {
42
+ PanelSignIn,
43
+ PanelSignInSkeleton
44
+ } from "./chunk-PM2VE7DJ.js";
45
+ import {
46
+ PanelBrandMark
47
+ } from "./chunk-JDE5XYPT.js";
38
48
  import {
39
49
  SegmentedControl
40
50
  } from "./chunk-MLRSOTFI.js";
@@ -51,8 +61,15 @@ import {
51
61
  SpreadsheetGrid
52
62
  } from "./chunk-MQT5RAQV.js";
53
63
  import {
54
- Switch
55
- } from "./chunk-ZHATD73Y.js";
64
+ Field
65
+ } from "./chunk-67ACNS42.js";
66
+ import {
67
+ ImageUploader
68
+ } from "./chunk-YDICVETX.js";
69
+ import {
70
+ Input,
71
+ inputClass
72
+ } from "./chunk-PWAKTEXF.js";
56
73
  import {
57
74
  Label
58
75
  } from "./chunk-QTFWORA7.js";
@@ -62,13 +79,6 @@ import {
62
79
  import {
63
80
  Pagination
64
81
  } from "./chunk-PUTC52SI.js";
65
- import {
66
- PanelSignIn,
67
- PanelSignInSkeleton
68
- } from "./chunk-PM2VE7DJ.js";
69
- import {
70
- PanelBrandMark
71
- } from "./chunk-JDE5XYPT.js";
72
82
  import {
73
83
  CollapsibleSection
74
84
  } from "./chunk-EWSBFU54.js";
@@ -81,22 +91,41 @@ import {
81
91
  import {
82
92
  DataTable
83
93
  } from "./chunk-ZLAA4DGG.js";
94
+ import {
95
+ Dialog,
96
+ DialogClose,
97
+ DialogContent,
98
+ DialogDescription,
99
+ DialogFooter,
100
+ DialogHeader,
101
+ DialogOverlay,
102
+ DialogPortal,
103
+ DialogTitle,
104
+ DialogTrigger
105
+ } from "./chunk-UBJK4OEO.js";
106
+ import {
107
+ DropdownMenu,
108
+ DropdownMenuCheckboxItem,
109
+ DropdownMenuContent,
110
+ DropdownMenuGroup,
111
+ DropdownMenuItem,
112
+ DropdownMenuLabel,
113
+ DropdownMenuPortal,
114
+ DropdownMenuRadioGroup,
115
+ DropdownMenuRadioItem,
116
+ DropdownMenuSeparator,
117
+ DropdownMenuShortcut,
118
+ DropdownMenuSub,
119
+ DropdownMenuSubContent,
120
+ DropdownMenuSubTrigger,
121
+ DropdownMenuTrigger
122
+ } from "./chunk-YXKAUYDJ.js";
84
123
  import {
85
124
  FeatureAccessGate
86
125
  } from "./chunk-S7PVZAPL.js";
87
126
  import {
88
127
  StatePanel
89
128
  } from "./chunk-G4ZQUSAJ.js";
90
- import {
91
- Field
92
- } from "./chunk-67ACNS42.js";
93
- import {
94
- ImageUploader
95
- } from "./chunk-YDICVETX.js";
96
- import {
97
- Input,
98
- inputClass
99
- } from "./chunk-PWAKTEXF.js";
100
129
  import {
101
130
  Alert,
102
131
  alertVariants
@@ -169,6 +198,31 @@ export {
169
198
  CopyButton,
170
199
  DataTable,
171
200
  DateRangePicker,
201
+ Dialog,
202
+ DialogClose,
203
+ DialogContent,
204
+ DialogDescription,
205
+ DialogFooter,
206
+ DialogHeader,
207
+ DialogOverlay,
208
+ DialogPortal,
209
+ DialogTitle,
210
+ DialogTrigger,
211
+ DropdownMenu,
212
+ DropdownMenuCheckboxItem,
213
+ DropdownMenuContent,
214
+ DropdownMenuGroup,
215
+ DropdownMenuItem,
216
+ DropdownMenuLabel,
217
+ DropdownMenuPortal,
218
+ DropdownMenuRadioGroup,
219
+ DropdownMenuRadioItem,
220
+ DropdownMenuSeparator,
221
+ DropdownMenuShortcut,
222
+ DropdownMenuSub,
223
+ DropdownMenuSubContent,
224
+ DropdownMenuSubTrigger,
225
+ DropdownMenuTrigger,
172
226
  FeatureAccessGate,
173
227
  Field,
174
228
  ImageUploader,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inshorts/glint-ui",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "description": "Glint Tailwind 4 UI kit for Inshorts Next panels.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -164,6 +164,16 @@
164
164
  "default": "./dist/date-range-picker/dateRange.cjs"
165
165
  }
166
166
  },
167
+ "./dialog": {
168
+ "import": {
169
+ "types": "./dist/dialog.d.ts",
170
+ "default": "./dist/dialog.js"
171
+ },
172
+ "require": {
173
+ "types": "./dist/dialog.d.cts",
174
+ "default": "./dist/dialog.cjs"
175
+ }
176
+ },
167
177
  "./dialogLayer": {
168
178
  "import": {
169
179
  "types": "./dist/dialogLayer.d.ts",
@@ -174,6 +184,16 @@
174
184
  "default": "./dist/dialogLayer.cjs"
175
185
  }
176
186
  },
187
+ "./dropdown-menu": {
188
+ "import": {
189
+ "types": "./dist/dropdown-menu.d.ts",
190
+ "default": "./dist/dropdown-menu.js"
191
+ },
192
+ "require": {
193
+ "types": "./dist/dropdown-menu.d.cts",
194
+ "default": "./dist/dropdown-menu.cjs"
195
+ }
196
+ },
177
197
  "./feature-access-gate": {
178
198
  "import": {
179
199
  "types": "./dist/feature-access-gate.d.ts",
@@ -408,19 +428,21 @@
408
428
  "url": "git+https://github.com/NewsInShorts/inshorts-npm-modules.git",
409
429
  "directory": "glint/ui"
410
430
  },
411
- "scripts": {
412
- "build": "tsup && node scripts/write-exports.mjs",
413
- "typecheck": "tsc --noEmit",
414
- "test": "vitest run",
415
- "prepublishOnly": "npm run typecheck && npm test && npm run build"
416
- },
417
431
  "peerDependencies": {
432
+ "@radix-ui/react-dialog": "^1.1.0",
433
+ "@radix-ui/react-dropdown-menu": "^2.1.0",
418
434
  "@radix-ui/react-slot": "^1.2.0",
419
435
  "lucide-react": "^0.400.0 || ^1.0.0",
420
436
  "react": "^19.3.0",
421
437
  "react-dom": "^19.3.0"
422
438
  },
423
439
  "peerDependenciesMeta": {
440
+ "@radix-ui/react-dialog": {
441
+ "optional": true
442
+ },
443
+ "@radix-ui/react-dropdown-menu": {
444
+ "optional": true
445
+ },
424
446
  "lucide-react": {
425
447
  "optional": true
426
448
  }
@@ -432,6 +454,8 @@
432
454
  "tailwind-merge": "^3.7.0"
433
455
  },
434
456
  "devDependencies": {
457
+ "@radix-ui/react-dialog": "^1.1.14",
458
+ "@radix-ui/react-dropdown-menu": "^2.1.14",
435
459
  "@radix-ui/react-slot": "^1.3.3",
436
460
  "@testing-library/jest-dom": "^7.0.1",
437
461
  "@testing-library/react": "^16.3.3",
@@ -451,5 +475,10 @@
451
475
  },
452
476
  "publishConfig": {
453
477
  "access": "public"
478
+ },
479
+ "scripts": {
480
+ "build": "tsup && node scripts/write-exports.mjs",
481
+ "typecheck": "tsc --noEmit",
482
+ "test": "vitest run"
454
483
  }
455
- }
484
+ }