@sellgar/kit 0.0.130 → 0.0.131

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 CHANGED
@@ -12157,23 +12157,8 @@ const lL = "_wrapper_txfvj_1", rL = "_container_txfvj_9", tl = {
12157
12157
  weeks: CL,
12158
12158
  days: OL,
12159
12159
  control: ML
12160
- }, DL = [
12161
- "Январь",
12162
- "Февраль",
12163
- "Март",
12164
- "Апрель",
12165
- "Май",
12166
- "Июнь",
12167
- "Июль",
12168
- "Август",
12169
- "Сентябрь",
12170
- "Октябрь",
12171
- "Ноябрь",
12172
- "Декабрь"
12173
- ], RL = ["П", "В", "С", "Ч", "П", "Сб", "Вс"], NL = (e) => W(e).year(), TL = (e) => W(e).month(), PL = (e) => {
12174
- const [t, n] = s.useState(!1), [i, l] = s.useState(!1), [r, o] = s.useState(
12175
- () => W(e.value || e.defaultValue || /* @__PURE__ */ new Date()).format(e.format)
12176
- );
12160
+ }, DL = ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"], RL = ["П", "В", "С", "Ч", "П", "Сб", "Вс"], NL = (e) => W(e).year(), TL = (e) => W(e).month(), PL = (e) => {
12161
+ const [t, n] = s.useState(!1), [i, l] = s.useState(!1), [r, o] = s.useState(() => W(e.value || e.defaultValue || /* @__PURE__ */ new Date()).format(e.format));
12177
12162
  s.useEffect(() => {
12178
12163
  i && (e.onChange && e.onChange(r), l(!1));
12179
12164
  }, [i]), s.useEffect(() => {
@@ -12181,10 +12166,7 @@ const lL = "_wrapper_txfvj_1", rL = "_container_txfvj_9", tl = {
12181
12166
  }, [e.value]), s.useEffect(() => {
12182
12167
  n(!0);
12183
12168
  }, []);
12184
- const a = s.useMemo(
12185
- () => xL(NL(r), TL(r)),
12186
- [r]
12187
- ), c = (m) => {
12169
+ const a = s.useMemo(() => xL(NL(r), TL(r)), [r]), c = (m) => {
12188
12170
  const h = m - 1;
12189
12171
  h < 0 ? o(W(r).subtract(1, "year").month(11).format(e.format)) : o(W(r).month(h).format(e.format));
12190
12172
  }, u = (m) => {
@@ -13318,7 +13300,7 @@ export {
13318
13300
  Mm as iconName,
13319
13301
  nc as rowContext,
13320
13302
  S1 as useCellData,
13321
- pE as useDialog,
13303
+ vm as useModalContext,
13322
13304
  Qb as useTooltip,
13323
13305
  wf as useTooltipContext
13324
13306
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sellgar/kit",
3
3
  "type": "module",
4
- "version": "0.0.130",
4
+ "version": "0.0.131",
5
5
  "description": "Sellgar kit",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -1 +1 @@
1
- export { Modal, useDialog } from './modal.tsx';
1
+ export { Modal, useModalContext } from './modal.tsx';