@stackshift-ui/date-picker 1.0.0-beta.8 → 1.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/dist/chunk-24RFZANX.mjs +1 -0
- package/dist/chunk-3EYN2AKU.mjs +1 -0
- package/dist/date-picker.d.ts +27 -0
- package/dist/date-picker.js +2 -0
- package/dist/date-picker.mjs +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.js +47 -0
- package/dist/setupTests.mjs +47 -0
- package/package.json +9 -9
- package/src/date-picker.tsx +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/date-picker",
|
|
3
3
|
"description": "A date picker component with range and presets.",
|
|
4
|
-
"version": "1.0.0
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
"classnames": "^2.5.1",
|
|
39
39
|
"date-fns": "^4.1.0",
|
|
40
40
|
"lucide-react": "^0.468.0",
|
|
41
|
-
"@stackshift-ui/calendar": "1.0.0
|
|
42
|
-
"@stackshift-ui/
|
|
43
|
-
"@stackshift-ui/
|
|
44
|
-
"@stackshift-ui/
|
|
45
|
-
"@stackshift-ui/popover": "1.0.0
|
|
46
|
-
"@stackshift-ui/
|
|
47
|
-
"@stackshift-ui/
|
|
41
|
+
"@stackshift-ui/calendar": "1.0.0",
|
|
42
|
+
"@stackshift-ui/system": "6.1.0",
|
|
43
|
+
"@stackshift-ui/scripts": "6.1.0",
|
|
44
|
+
"@stackshift-ui/button": "6.1.0",
|
|
45
|
+
"@stackshift-ui/popover": "1.0.0",
|
|
46
|
+
"@stackshift-ui/label": "1.0.0",
|
|
47
|
+
"@stackshift-ui/input": "6.1.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@stackshift-ui/system": ">=7.0.0
|
|
50
|
+
"@stackshift-ui/system": ">=7.0.0",
|
|
51
51
|
"@types/react": "16.8 - 19",
|
|
52
52
|
"next": "10 - 14",
|
|
53
53
|
"react": "16.8 - 19",
|
package/src/date-picker.tsx
CHANGED
|
@@ -49,7 +49,7 @@ export function DatePicker({
|
|
|
49
49
|
</Label>
|
|
50
50
|
<Popover open={open} onOpenChange={setOpen}>
|
|
51
51
|
<PopoverTrigger asChild>
|
|
52
|
-
<Button variant="outline" id="date" className="w-48 justify-between
|
|
52
|
+
<Button variant="outline" id="date" className="w-48 font-normal [&>span]:w-full [&>span]:justify-between">
|
|
53
53
|
{date ? date.toLocaleDateString() : "Select date"}
|
|
54
54
|
<ChevronDownIcon />
|
|
55
55
|
</Button>
|
|
@@ -195,7 +195,7 @@ export function DatePickerTime({ label, selectedDate, onSelect, ...props }: Date
|
|
|
195
195
|
</Label>
|
|
196
196
|
<Popover open={open} onOpenChange={setOpen}>
|
|
197
197
|
<PopoverTrigger asChild>
|
|
198
|
-
<Button variant="outline" id="date-picker" className="w-32 justify-between
|
|
198
|
+
<Button variant="outline" id="date-picker" className="w-32 font-normal [&>span]:w-full [&>span]:justify-between">
|
|
199
199
|
{date ? date.toLocaleDateString() : "Select date"}
|
|
200
200
|
<ChevronDownIcon />
|
|
201
201
|
</Button>
|