@taqwim/solid 0.1.0-beta.2 → 0.1.0-beta.4
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.js +104 -126
- package/dist/source/HijriCalendar.d.ts +4 -0
- package/dist/source/HijriCalendar.jsx +27 -8
- package/dist/source/types.d.ts +6 -1
- package/dist/source/types.js +3 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,49 +1,23 @@
|
|
|
1
|
-
import { createComponent as e, insert as t,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { createComponent as e, insert as t, mergeProps as n, spread as r, template as i, use as a } from "solid-js/web";
|
|
2
|
+
import { createCalendar as o, getCellDisplayValues as s } from "@taqwim/calendar-core";
|
|
3
|
+
import { children as c, createContext as l, createEffect as u, createRenderEffect as d, createSignal as f, onCleanup as p, onMount as m, splitProps as h, useContext as g } from "solid-js";
|
|
4
4
|
//#region src/context.ts
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
let e =
|
|
5
|
+
var _ = l();
|
|
6
|
+
function v() {
|
|
7
|
+
let e = g(_);
|
|
8
8
|
if (!e) throw Error("Taqwim calendar parts must be rendered inside <HijriCalendarRoot>");
|
|
9
9
|
return e;
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/types.ts
|
|
13
|
-
var
|
|
14
|
-
"defaultValue",
|
|
15
|
-
"value",
|
|
16
|
-
"onValueChange",
|
|
17
|
-
"defaultPlaceholder",
|
|
18
|
-
"placeholder",
|
|
19
|
-
"onPlaceholderChange",
|
|
20
|
-
"weekStartsOn",
|
|
21
|
-
"weekdayFormat",
|
|
22
|
-
"calendarLabel",
|
|
23
|
-
"fixedWeeks",
|
|
24
|
-
"numberOfMonths",
|
|
25
|
-
"pagedNavigation",
|
|
26
|
-
"multiple",
|
|
27
|
-
"preventDeselect",
|
|
28
|
-
"disableDaysOutsideCurrentView",
|
|
29
|
-
"disabled",
|
|
30
|
-
"readonly",
|
|
31
|
-
"minValue",
|
|
32
|
-
"maxValue",
|
|
33
|
-
"locale",
|
|
34
|
-
"dir",
|
|
35
|
-
"isDateDisabled",
|
|
36
|
-
"isDateUnavailable",
|
|
37
|
-
"nextPage",
|
|
38
|
-
"prevPage"
|
|
39
|
-
];
|
|
13
|
+
var y = /* @__PURE__ */ "defaultValue.value.onValueChange.defaultPlaceholder.placeholder.onPlaceholderChange.weekStartsOn.weekdayFormat.calendarLabel.fixedWeeks.numberOfMonths.pagedNavigation.multiple.preventDeselect.disableDaysOutsideCurrentView.disabled.readonly.minValue.maxValue.locale.showGregorian.dateEmphasis.gregorianLocale.dir.isDateDisabled.isDateUnavailable.nextPage.prevPage".split(".");
|
|
40
14
|
//#endregion
|
|
41
15
|
//#region src/useCalendar.ts
|
|
42
|
-
function
|
|
43
|
-
let t =
|
|
44
|
-
return
|
|
16
|
+
function b(e) {
|
|
17
|
+
let t = o(e()), [n, r] = f(t.getSnapshot());
|
|
18
|
+
return p(t.subscribe(() => {
|
|
45
19
|
r(t.getSnapshot());
|
|
46
|
-
})),
|
|
20
|
+
})), d(() => {
|
|
47
21
|
t.setOptions(e());
|
|
48
22
|
}), {
|
|
49
23
|
store: t,
|
|
@@ -52,170 +26,174 @@ function y(e) {
|
|
|
52
26
|
}
|
|
53
27
|
//#endregion
|
|
54
28
|
//#region src/HijriCalendar.tsx
|
|
55
|
-
var
|
|
56
|
-
function
|
|
57
|
-
return typeof e == "function" ? e(t()) : e;
|
|
29
|
+
var x = /*#__PURE__*/ i("<div><div style=position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0><div role=heading aria-level=2>"), S = /*#__PURE__*/ i("<div role=group data-taqwim-calendar-header>"), C = /*#__PURE__*/ i("<div data-taqwim-calendar-heading>"), w = /*#__PURE__*/ i("<button>"), T = /*#__PURE__*/ i("<div tabindex=-1>"), E = /*#__PURE__*/ i("<div aria-hidden=true data-taqwim-calendar-grid-head>"), D = /*#__PURE__*/ i("<div data-taqwim-calendar-grid-body>"), O = /*#__PURE__*/ i("<div role=row data-taqwim-calendar-grid-row>"), k = /*#__PURE__*/ i("<div data-taqwim-calendar-head-cell>"), A = /*#__PURE__*/ i("<div role=gridcell data-taqwim-calendar-cell>");
|
|
30
|
+
function j(e, t) {
|
|
31
|
+
return typeof e == "function" ? c(() => e(t()))() : e;
|
|
58
32
|
}
|
|
59
|
-
function
|
|
60
|
-
let [
|
|
61
|
-
...
|
|
33
|
+
function M(i) {
|
|
34
|
+
let [o, s, c] = h(i, y, ["children", "initialFocus"]), l, d, { store: f, state: p } = b(() => ({
|
|
35
|
+
...o,
|
|
62
36
|
onFocusedDateChange: (e) => {
|
|
63
|
-
d = e ?
|
|
37
|
+
d = e ? f.formatter.isoDate(e) : void 0;
|
|
64
38
|
}
|
|
65
39
|
}));
|
|
66
|
-
|
|
67
|
-
if (
|
|
40
|
+
u(() => {
|
|
41
|
+
if (p(), !d) return;
|
|
68
42
|
let e = d;
|
|
69
|
-
d = void 0,
|
|
70
|
-
}),
|
|
71
|
-
s.initialFocus &&
|
|
43
|
+
d = void 0, l?.querySelector(`[data-taqwim-calendar-cell-trigger][data-value="${e}"]`)?.focus();
|
|
44
|
+
}), m(() => {
|
|
45
|
+
s.initialFocus && f.focusInitial();
|
|
72
46
|
});
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
return e(
|
|
47
|
+
let g = (e) => {
|
|
48
|
+
f.handleKeydown(e) && e.preventDefault();
|
|
49
|
+
}, v = () => (p(), f.getRootProps());
|
|
50
|
+
return e(_.Provider, {
|
|
77
51
|
value: {
|
|
78
|
-
store:
|
|
79
|
-
state:
|
|
52
|
+
store: f,
|
|
53
|
+
state: p
|
|
80
54
|
},
|
|
81
55
|
get children() {
|
|
82
|
-
var e =
|
|
83
|
-
return typeof
|
|
56
|
+
var e = x(), i = e.firstChild, o = i.firstChild, u = l;
|
|
57
|
+
return typeof u == "function" ? a(u, e) : l = e, r(e, n(v, c, { onKeyDown: g }), !1, !0), t(e, () => j(s.children, () => ({
|
|
84
58
|
get months() {
|
|
85
|
-
return
|
|
59
|
+
return p().months;
|
|
86
60
|
},
|
|
87
61
|
get weekDays() {
|
|
88
|
-
return
|
|
62
|
+
return p().weekDays;
|
|
63
|
+
},
|
|
64
|
+
get modelValue() {
|
|
65
|
+
return p().value;
|
|
66
|
+
},
|
|
67
|
+
get gregorianValue() {
|
|
68
|
+
return p().gregorianValue;
|
|
89
69
|
},
|
|
90
70
|
get state() {
|
|
91
|
-
return
|
|
71
|
+
return p();
|
|
92
72
|
},
|
|
93
|
-
store:
|
|
94
|
-
})),
|
|
73
|
+
store: f
|
|
74
|
+
})), i), t(o, () => p().fullCalendarLabel), e;
|
|
95
75
|
}
|
|
96
76
|
});
|
|
97
77
|
}
|
|
98
|
-
function M(e) {
|
|
99
|
-
let { state: n } = _(), [a, o] = p(e, ["children"]);
|
|
100
|
-
return (() => {
|
|
101
|
-
var e = x();
|
|
102
|
-
return i(e, r({ get "aria-label"() {
|
|
103
|
-
return n().fullCalendarLabel;
|
|
104
|
-
} }, o), !1, !0), t(e, () => a.children), e;
|
|
105
|
-
})();
|
|
106
|
-
}
|
|
107
78
|
function N(e) {
|
|
108
|
-
let { state:
|
|
79
|
+
let { state: i } = v(), [a, o] = h(e, ["children"]);
|
|
109
80
|
return (() => {
|
|
110
81
|
var e = S();
|
|
111
|
-
return
|
|
112
|
-
return
|
|
113
|
-
} },
|
|
114
|
-
var e = n(() => o.children === void 0);
|
|
115
|
-
return () => e() ? a().headingValue : A(o.children, () => a().headingValue);
|
|
116
|
-
})()), e;
|
|
82
|
+
return r(e, n({ get "aria-label"() {
|
|
83
|
+
return i().fullCalendarLabel;
|
|
84
|
+
} }, o), !1, !0), t(e, () => a.children), e;
|
|
117
85
|
})();
|
|
118
86
|
}
|
|
119
87
|
function P(e) {
|
|
120
|
-
let {
|
|
88
|
+
let { state: i } = v(), a = "children" in e, [o, s] = h(e, ["children"]);
|
|
121
89
|
return (() => {
|
|
122
90
|
var e = C();
|
|
123
|
-
return
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
onClick: () => n.prevPage()
|
|
128
|
-
}), !1, !0), t(e, () => A(o.children, () => a().isPrevDisabled)), e;
|
|
91
|
+
return r(e, n({ get "data-disabled"() {
|
|
92
|
+
return i().disabled ? "" : void 0;
|
|
93
|
+
} }, s), !1, !0), t(e, () => a ? j(o.children, () => i().headingValue) : i().headingValue), e;
|
|
129
94
|
})();
|
|
130
95
|
}
|
|
131
96
|
function F(e) {
|
|
132
|
-
let { store:
|
|
97
|
+
let { store: i, state: a } = v(), [o, s] = h(e, ["children"]), c = () => (a(), i.getPrevButtonProps());
|
|
133
98
|
return (() => {
|
|
134
|
-
var e =
|
|
135
|
-
return
|
|
99
|
+
var e = w();
|
|
100
|
+
return r(e, n(c, s, {
|
|
136
101
|
get disabled() {
|
|
137
|
-
return a().
|
|
102
|
+
return a().isPrevDisabled;
|
|
138
103
|
},
|
|
139
|
-
onClick: () =>
|
|
140
|
-
}), !1, !0), t(e, () =>
|
|
104
|
+
onClick: () => i.prevPage()
|
|
105
|
+
}), !1, !0), t(e, () => j(o.children, () => a().isPrevDisabled)), e;
|
|
141
106
|
})();
|
|
142
107
|
}
|
|
143
108
|
function I(e) {
|
|
144
|
-
let { store:
|
|
109
|
+
let { store: i, state: a } = v(), [o, s] = h(e, ["children"]), c = () => (a(), i.getNextButtonProps());
|
|
145
110
|
return (() => {
|
|
146
111
|
var e = w();
|
|
147
|
-
return
|
|
112
|
+
return r(e, n(c, s, {
|
|
113
|
+
get disabled() {
|
|
114
|
+
return a().isNextDisabled;
|
|
115
|
+
},
|
|
116
|
+
onClick: () => i.nextPage()
|
|
117
|
+
}), !1, !0), t(e, () => j(o.children, () => a().isNextDisabled)), e;
|
|
148
118
|
})();
|
|
149
119
|
}
|
|
150
120
|
function L(e) {
|
|
151
|
-
let { state:
|
|
121
|
+
let { store: i, state: a } = v(), [o, s] = h(e, ["month", "children"]), c = () => o.month ?? a().months[0], l = () => (a(), i.getGridProps(c()));
|
|
152
122
|
return (() => {
|
|
153
123
|
var e = T();
|
|
154
|
-
return
|
|
124
|
+
return r(e, n(l, s), !1, !0), t(e, () => j(o.children, c)), e;
|
|
155
125
|
})();
|
|
156
126
|
}
|
|
157
127
|
function R(e) {
|
|
158
|
-
let
|
|
128
|
+
let { state: n } = v(), [i, a] = h(e, ["children"]);
|
|
159
129
|
return (() => {
|
|
160
130
|
var e = E();
|
|
161
|
-
return
|
|
131
|
+
return r(e, a, !1, !0), t(e, () => j(i.children, () => n().weekDays)), e;
|
|
162
132
|
})();
|
|
163
133
|
}
|
|
164
134
|
function z(e) {
|
|
165
|
-
let [n,
|
|
135
|
+
let [n, i] = h(e, ["children"]);
|
|
166
136
|
return (() => {
|
|
167
137
|
var e = D();
|
|
168
|
-
return
|
|
138
|
+
return r(e, i, !1, !0), t(e, () => n.children), e;
|
|
169
139
|
})();
|
|
170
140
|
}
|
|
171
141
|
function B(e) {
|
|
172
|
-
let [n,
|
|
142
|
+
let [n, i] = h(e, ["children"]);
|
|
173
143
|
return (() => {
|
|
174
144
|
var e = O();
|
|
175
|
-
return
|
|
145
|
+
return r(e, i, !1, !0), t(e, () => n.children), e;
|
|
176
146
|
})();
|
|
177
147
|
}
|
|
178
148
|
function V(e) {
|
|
179
|
-
let [n,
|
|
149
|
+
let [n, i] = h(e, ["children"]);
|
|
180
150
|
return (() => {
|
|
181
151
|
var e = k();
|
|
182
|
-
return i(e,
|
|
152
|
+
return r(e, i, !1, !0), t(e, () => n.children), e;
|
|
153
|
+
})();
|
|
154
|
+
}
|
|
155
|
+
function H(e) {
|
|
156
|
+
let [i, a] = h(e, ["day", "children"]);
|
|
157
|
+
return (() => {
|
|
158
|
+
var e = A();
|
|
159
|
+
return r(e, n({
|
|
183
160
|
get "aria-selected"() {
|
|
184
|
-
return
|
|
161
|
+
return i.day.isSelected || void 0;
|
|
185
162
|
},
|
|
186
163
|
get "aria-disabled"() {
|
|
187
|
-
return
|
|
164
|
+
return i.day.isDisabled || i.day.isUnavailable || void 0;
|
|
188
165
|
},
|
|
189
166
|
get "data-disabled"() {
|
|
190
|
-
return
|
|
167
|
+
return i.day.isDisabled ? "" : void 0;
|
|
191
168
|
},
|
|
192
169
|
get "data-outside-month"() {
|
|
193
|
-
return
|
|
170
|
+
return i.day.isOutsideMonth ? "" : void 0;
|
|
194
171
|
}
|
|
195
|
-
}, a), !1, !0), t(e, () =>
|
|
172
|
+
}, a), !1, !0), t(e, () => i.children), e;
|
|
196
173
|
})();
|
|
197
174
|
}
|
|
198
|
-
function
|
|
199
|
-
let { store:
|
|
200
|
-
function d() {
|
|
201
|
-
s.day.isDisabled || s.day.isUnavailable || a.select(s.day.date);
|
|
202
|
-
}
|
|
175
|
+
function U(e) {
|
|
176
|
+
let { store: i, state: a } = v(), o = "children" in e, [c, l] = h(e, ["day", "children"]), u = () => s(c.day, i.formatter, a().showGregorian, a().dateEmphasis), d = () => (a(), i.getCellTriggerProps(c.day));
|
|
203
177
|
function f() {
|
|
204
|
-
|
|
178
|
+
c.day.isDisabled || c.day.isUnavailable || i.select(c.day.date);
|
|
179
|
+
}
|
|
180
|
+
function p() {
|
|
181
|
+
c.day.isDisabled || c.day.isFocused || i.focusDate(c.day.date);
|
|
205
182
|
}
|
|
206
183
|
return (() => {
|
|
207
|
-
var e =
|
|
208
|
-
return
|
|
209
|
-
onClick:
|
|
210
|
-
onFocus:
|
|
211
|
-
}), !1, !0), t(e, (() => {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
184
|
+
var e = w();
|
|
185
|
+
return r(e, n(d, l, {
|
|
186
|
+
onClick: f,
|
|
187
|
+
onFocus: p
|
|
188
|
+
}), !1, !0), t(e, () => o ? j(c.children, () => ({
|
|
189
|
+
dayValue: u().dayValue,
|
|
190
|
+
hijriDayValue: u().hijriDayValue,
|
|
191
|
+
gregorianDayValue: u().gregorianDayValue,
|
|
192
|
+
primaryDayValue: u().primaryDayValue,
|
|
193
|
+
secondaryDayValue: u().secondaryDayValue,
|
|
194
|
+
day: c.day
|
|
195
|
+
})) : u().dayValue), e;
|
|
218
196
|
})();
|
|
219
197
|
}
|
|
220
198
|
//#endregion
|
|
221
|
-
export {
|
|
199
|
+
export { H as HijriCalendarCell, U as HijriCalendarCellTrigger, L as HijriCalendarGrid, z as HijriCalendarGridBody, R as HijriCalendarGridHead, B as HijriCalendarGridRow, V as HijriCalendarHeadCell, N as HijriCalendarHeader, P as HijriCalendarHeading, I as HijriCalendarNext, F as HijriCalendarPrev, M as HijriCalendarRoot, b as createCalendarStore, v as useHijriCalendarContext };
|
|
@@ -41,6 +41,10 @@ export declare function HijriCalendarCellTrigger(props: ButtonProps & {
|
|
|
41
41
|
day: CalendarDay;
|
|
42
42
|
children?: JSX.Element | ((props: {
|
|
43
43
|
dayValue: string;
|
|
44
|
+
hijriDayValue: string;
|
|
45
|
+
gregorianDayValue: string;
|
|
46
|
+
primaryDayValue: string;
|
|
47
|
+
secondaryDayValue?: string;
|
|
44
48
|
day: CalendarDay;
|
|
45
49
|
}) => JSX.Element);
|
|
46
50
|
}): JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getCellDisplayValues } from '@taqwim/calendar-core';
|
|
2
|
+
import { children, createEffect, onMount, splitProps } from 'solid-js';
|
|
2
3
|
import { HijriCalendarContext, useHijriCalendarContext } from './context';
|
|
3
4
|
import { OPTION_KEYS } from './types';
|
|
4
5
|
import { createCalendarStore } from './useCalendar';
|
|
@@ -29,8 +30,11 @@ import { createCalendarStore } from './useCalendar';
|
|
|
29
30
|
* function, and the JSX subtree is created once and then updated in place by
|
|
30
31
|
* the fine-grained bindings inside it.
|
|
31
32
|
*/
|
|
32
|
-
function renderChildren(
|
|
33
|
-
|
|
33
|
+
function renderChildren(raw, props) {
|
|
34
|
+
if (typeof raw !== 'function')
|
|
35
|
+
return raw;
|
|
36
|
+
const resolved = children(() => raw(props()));
|
|
37
|
+
return resolved();
|
|
34
38
|
}
|
|
35
39
|
export function HijriCalendarRoot(props) {
|
|
36
40
|
const [options, local, domProps] = splitProps(props, OPTION_KEYS, ['children', 'initialFocus']);
|
|
@@ -79,6 +83,12 @@ export function HijriCalendarRoot(props) {
|
|
|
79
83
|
get weekDays() {
|
|
80
84
|
return state().weekDays;
|
|
81
85
|
},
|
|
86
|
+
get modelValue() {
|
|
87
|
+
return state().value;
|
|
88
|
+
},
|
|
89
|
+
get gregorianValue() {
|
|
90
|
+
return state().gregorianValue;
|
|
91
|
+
},
|
|
82
92
|
get state() {
|
|
83
93
|
return state();
|
|
84
94
|
},
|
|
@@ -113,9 +123,10 @@ export function HijriCalendarHeader(props) {
|
|
|
113
123
|
}
|
|
114
124
|
export function HijriCalendarHeading(props) {
|
|
115
125
|
const { state } = useHijriCalendarContext();
|
|
126
|
+
const hasChildren = 'children' in props;
|
|
116
127
|
const [local, rest] = splitProps(props, ['children']);
|
|
117
128
|
return (<div data-taqwim-calendar-heading="" data-disabled={state().disabled ? '' : undefined} {...rest}>
|
|
118
|
-
{
|
|
129
|
+
{hasChildren ? renderChildren(local.children, () => state().headingValue) : state().headingValue}
|
|
119
130
|
</div>);
|
|
120
131
|
}
|
|
121
132
|
export function HijriCalendarPrev(props) {
|
|
@@ -193,8 +204,9 @@ export function HijriCalendarCell(props) {
|
|
|
193
204
|
}
|
|
194
205
|
export function HijriCalendarCellTrigger(props) {
|
|
195
206
|
const { store, state } = useHijriCalendarContext();
|
|
207
|
+
const hasChildren = 'children' in props;
|
|
196
208
|
const [local, rest] = splitProps(props, ['day', 'children']);
|
|
197
|
-
const
|
|
209
|
+
const display = () => getCellDisplayValues(local.day, store.formatter, state().showGregorian, state().dateEmphasis);
|
|
198
210
|
/*
|
|
199
211
|
* The prop getters read the store's snapshot directly, which is not a signal.
|
|
200
212
|
* Touching `state()` here is what makes this a tracked dependency — without
|
|
@@ -220,8 +232,15 @@ export function HijriCalendarCellTrigger(props) {
|
|
|
220
232
|
store.focusDate(local.day.date);
|
|
221
233
|
}
|
|
222
234
|
return (<button {...triggerProps()} {...rest} onClick={onClick} onFocus={onFocus}>
|
|
223
|
-
{
|
|
224
|
-
?
|
|
225
|
-
|
|
235
|
+
{hasChildren
|
|
236
|
+
? renderChildren(local.children, () => ({
|
|
237
|
+
dayValue: display().dayValue,
|
|
238
|
+
hijriDayValue: display().hijriDayValue,
|
|
239
|
+
gregorianDayValue: display().gregorianDayValue,
|
|
240
|
+
primaryDayValue: display().primaryDayValue,
|
|
241
|
+
secondaryDayValue: display().secondaryDayValue,
|
|
242
|
+
day: local.day,
|
|
243
|
+
}))
|
|
244
|
+
: display().dayValue}
|
|
226
245
|
</button>);
|
|
227
246
|
}
|
package/dist/source/types.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export interface HijriCalendarRootOptions {
|
|
|
33
33
|
minValue?: HijriDateObject;
|
|
34
34
|
maxValue?: HijriDateObject;
|
|
35
35
|
locale?: string;
|
|
36
|
+
showGregorian?: boolean;
|
|
37
|
+
dateEmphasis?: import('@taqwim/calendar-core').DateEmphasis;
|
|
38
|
+
gregorianLocale?: string;
|
|
36
39
|
dir?: 'ltr' | 'rtl';
|
|
37
40
|
isDateDisabled?: Matcher;
|
|
38
41
|
isDateUnavailable?: Matcher;
|
|
@@ -44,6 +47,8 @@ export interface HijriCalendarRootOptions {
|
|
|
44
47
|
export interface HijriCalendarRenderProps {
|
|
45
48
|
months: CalendarMonth[];
|
|
46
49
|
weekDays: string[];
|
|
50
|
+
modelValue: HijriDateObject | HijriDateObject[] | undefined;
|
|
51
|
+
gregorianValue: Date | Date[] | undefined;
|
|
47
52
|
state: CalendarState;
|
|
48
53
|
store: CalendarStore;
|
|
49
54
|
}
|
|
@@ -52,4 +57,4 @@ export type HijriCalendarRootProps = HijriCalendarRootOptions & Omit<JSX.HTMLAtt
|
|
|
52
57
|
children?: JSX.Element | ((props: HijriCalendarRenderProps) => JSX.Element);
|
|
53
58
|
};
|
|
54
59
|
/** The option names, so the root can tell them from DOM attributes. */
|
|
55
|
-
export declare const OPTION_KEYS: readonly ["defaultValue", "value", "onValueChange", "defaultPlaceholder", "placeholder", "onPlaceholderChange", "weekStartsOn", "weekdayFormat", "calendarLabel", "fixedWeeks", "numberOfMonths", "pagedNavigation", "multiple", "preventDeselect", "disableDaysOutsideCurrentView", "disabled", "readonly", "minValue", "maxValue", "locale", "dir", "isDateDisabled", "isDateUnavailable", "nextPage", "prevPage"];
|
|
60
|
+
export declare const OPTION_KEYS: readonly ["defaultValue", "value", "onValueChange", "defaultPlaceholder", "placeholder", "onPlaceholderChange", "weekStartsOn", "weekdayFormat", "calendarLabel", "fixedWeeks", "numberOfMonths", "pagedNavigation", "multiple", "preventDeselect", "disableDaysOutsideCurrentView", "disabled", "readonly", "minValue", "maxValue", "locale", "showGregorian", "dateEmphasis", "gregorianLocale", "dir", "isDateDisabled", "isDateUnavailable", "nextPage", "prevPage"];
|
package/dist/source/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taqwim/solid",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Headless Solid components for Hijri calendars, built on @taqwim/calendar-core",
|
|
6
6
|
"keywords": [
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@taqwim/core": "0.1.0-beta.
|
|
50
|
-
"@taqwim/
|
|
49
|
+
"@taqwim/calendar-core": "0.1.0-beta.4",
|
|
50
|
+
"@taqwim/core": "0.1.0-beta.4"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@arethetypeswrong/cli": "^0.18.2",
|