@salyra-ui/date-time-picker 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Salyra UI contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # Salyra UI / DateTimePicker
2
+
3
+ Composable datetime controls for React, Svelte, Vue, Angular, Astro and Vanilla.
4
+
5
+ ## Installation
6
+
7
+ Install with `npm install @salyra-ui/date-time-picker`. npm resolves its declared Salyra dependencies. Import the framework entry your application uses.
8
+
9
+ ```sh
10
+ npm install @salyra-ui/date-time-picker
11
+ ```
12
+
13
+ Import the adapter your app uses, such as `@salyra-ui/date-time-picker/svelte`. Framework peers are optional. The default stylesheet is optional through `@salyra-ui/date-time-picker/styles.css`.
14
+
15
+ Calendar owns the shared calculations, store and native primitives. DatePicker and TimePicker provide their own roots and defaults. DateTimePicker composes both packages. They share the same context, so their primitive components can be used in one editor.
16
+
17
+ Values remain in draft until complete and valid. Explicit Apply and Cancel are available. Time intervals use end dates or day offsets rather than guessing the next day.
18
+
19
+ The generated package contains dist, README and LICENSE, without sourcemaps. Vanilla has readable and minified standalone browser files. Each standalone browser bundle includes its dependencies and needs no additional Salyra script.
20
+
21
+ The workspace contains versioned API documentation, framework examples, tests and architecture notes.
22
+
23
+ ## Vanilla browser assets
24
+
25
+ The archive includes readable and minified standalone browser scripts at `dist/browser/date-time-picker.js` and `dist/browser/date-time-picker.min.js`. Each script includes its required Calendar core. Styles are available at `dist/styles.css` and `dist/styles.min.css`, without sourcemaps. Both JavaScript builds expose the same `SalyraDateTimePicker` global.
26
+
27
+ For a bundled application, import `@salyra-ui/date-time-picker/vanilla` and, when using the default appearance, `@salyra-ui/date-time-picker/styles.min.css`. The `styles.standard.css` entry gives you the readable stylesheet. Custom compositions can omit these default styles.
@@ -0,0 +1,22 @@
1
+ export * from "./index";
2
+ export { PickerRoot, CalendarView, DayTrigger, CalendarNumber, Continuous, Grid, Week, Cell, Heading, Weekday, MonthYearSelect, Action, DateField, TimeSegmentField, PICKER_CONTEXT, usePickerStore, } from "@salyra-ui/calendar/angular";
3
+ import { PickerRoot, Action } from "@salyra-ui/calendar/angular";
4
+ export declare const DateTimePicker: {
5
+ Root: typeof PickerRoot;
6
+ Action: typeof Action;
7
+ Calendar: typeof import("@salyra-ui/calendar/angular").CalendarView;
8
+ Field: typeof import("@salyra-ui/calendar/angular").DateField;
9
+ Segment: typeof import("@salyra-ui/calendar/angular").TimeSegmentField;
10
+ Continuous: typeof import("@salyra-ui/calendar/angular").Continuous;
11
+ Grid: typeof import("@salyra-ui/calendar/angular").Grid;
12
+ Week: typeof import("@salyra-ui/calendar/angular").Week;
13
+ Cell: typeof import("@salyra-ui/calendar/angular").Cell;
14
+ Heading: typeof import("@salyra-ui/calendar/angular").Heading;
15
+ Weekday: typeof import("@salyra-ui/calendar/angular").Weekday;
16
+ Navigation: typeof Action;
17
+ MonthSelect: typeof import("@salyra-ui/calendar/angular").MonthYearSelect;
18
+ YearSelect: typeof import("@salyra-ui/calendar/angular").MonthYearSelect;
19
+ View: typeof import("@salyra-ui/calendar/angular").CalendarView;
20
+ DayTrigger: typeof import("@salyra-ui/calendar/angular").DayTrigger;
21
+ Number: typeof import("@salyra-ui/calendar/angular").CalendarNumber;
22
+ };
@@ -0,0 +1 @@
1
+ var d=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var T=Object.prototype.hasOwnProperty;var P=(i,t)=>{for(var a in t)d(i,a,{get:t[a],enumerable:!0})},p=(i,t,a,k)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of S(t))!T.call(i,n)&&n!==a&&d(i,n,{get:()=>t[n],enumerable:!(k=C(t,n))||k.enumerable});return i},r=(i,t,a)=>(p(i,t,"default"),a&&p(a,t,"default"));var o={};P(o,{Action:()=>G,CalendarNumber:()=>R,CalendarView:()=>y,Cell:()=>W,Continuous:()=>A,DateField:()=>H,DateTimePicker:()=>u,DayTrigger:()=>F,Grid:()=>E,Heading:()=>b,MonthYearSelect:()=>w,PICKER_CONTEXT:()=>K,PickerRoot:()=>O,TimeSegmentField:()=>I,Week:()=>N,Weekday:()=>h,createDateTimePickerStore:()=>l,createPickerStore:()=>c,usePickerStore:()=>M});var e={};P(e,{createDateTimePickerStore:()=>l,createPickerStore:()=>c});r(e,Y);import*as Y from"@salyra-ui/calendar";import{createPickerStore as f}from"@salyra-ui/calendar";function c(i={}){return f({...i,kind:"datetime"})}var l=c;r(o,e);import{PickerRoot as O,CalendarView as y,DayTrigger as F,CalendarNumber as R,Continuous as A,Grid as E,Week as N,Cell as W,Heading as b,Weekday as h,MonthYearSelect as w,Action as G,DateField as H,TimeSegmentField as I,PICKER_CONTEXT as K,usePickerStore as M}from"@salyra-ui/calendar/angular";import{Calendar as x,PickerRoot as D,Action as g}from"@salyra-ui/calendar/angular";import{DatePicker as m}from"@salyra-ui/date-picker/angular";import{TimePicker as s}from"@salyra-ui/time-picker/angular";var u={...x,...m,...s,Root:D,Action:g,Calendar:m.Calendar,Field:m.Field,Segment:s.Segment};export{G as Action,R as CalendarNumber,y as CalendarView,W as Cell,A as Continuous,H as DateField,u as DateTimePicker,F as DayTrigger,E as Grid,b as Heading,w as MonthYearSelect,K as PICKER_CONTEXT,O as PickerRoot,I as TimeSegmentField,N as Week,h as Weekday,l as createDateTimePickerStore,c as createPickerStore,M as usePickerStore};
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Action.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Calendar.astro";const{options={},...attributes}=Astro.props;
3
+ ---
4
+
5
+ <Part {...attributes} options={{ ...options, kind: "datetime" }}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Cell.astro";const{options={},...attributes}=Astro.props;
3
+ ---
4
+
5
+ <Part {...attributes} options={{ ...options, kind: "datetime" }}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Continuous.astro";const{pickerOptions={},...attributes}=Astro.props;
3
+ ---
4
+
5
+ <Part {...attributes} pickerOptions={{ ...pickerOptions, kind: "datetime" }}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Root from"./Root.astro";
3
+ ---
4
+
5
+ <Root {...Astro.props}>
6
+ <slot />
7
+ </Root>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/DayTrigger.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/date-picker/astro/Field.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Grid.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Heading.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/MonthSelect.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Number.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/time-picker/astro/Period.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Root from"@salyra-ui/calendar/astro/Root.astro";const{options={},...attributes}=Astro.props;
3
+ ---
4
+
5
+ <Root {...attributes} options={{ ...options, kind: "datetime" }}>
6
+ <slot />
7
+ </Root>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/time-picker/astro/Segment.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Week.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/Weekday.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>
@@ -0,0 +1,7 @@
1
+ ---
2
+ import Part from"@salyra-ui/calendar/astro/YearSelect.astro";
3
+ ---
4
+
5
+ <Part {...Astro.props}>
6
+ <slot />
7
+ </Part>