aq-fe-framework 0.1.308 → 0.1.310

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.
@@ -19,7 +19,7 @@ import {
19
19
  utils_time_convertTimeStringToSeconds,
20
20
  utils_time_getCurrentTimeString,
21
21
  utils_validator_validateCode
22
- } from "../chunk-NRFQDAYS.mjs";
22
+ } from "../chunk-M6B6SXA3.mjs";
23
23
  import {
24
24
  utils_pdf_download
25
25
  } from "../chunk-5U2JSHSJ.mjs";
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "types": "./dist/core/index.d.mts"
39
39
  }
40
40
  },
41
- "version": "0.1.308",
41
+ "version": "0.1.310",
42
42
  "private": false,
43
43
  "files": [
44
44
  "dist"
@@ -90,7 +90,6 @@
90
90
  "@tiptap/pm": "^2.9.1",
91
91
  "@tiptap/react": "^2.9.1",
92
92
  "@tiptap/starter-kit": "^2.9.1",
93
- "aq-fe-framework": "^0.1.297",
94
93
  "autoprefixer": "^10.4.20",
95
94
  "axios": "^1.7.7",
96
95
  "caniuse-lite": "^1.0.30001718",
@@ -1,55 +0,0 @@
1
- import {
2
- enum_daysOfWeek
3
- } from "./chunk-K6S7R6LU.mjs";
4
- import {
5
- __objRest,
6
- __spreadProps,
7
- __spreadValues
8
- } from "./chunk-FWCSY2DS.mjs";
9
-
10
- // src/components/Layouts/FlexColumn/MyFlexColumn.tsx
11
- import { Flex } from "@mantine/core";
12
- import { jsx } from "react/jsx-runtime";
13
- function MyFlexColumn(_a) {
14
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
15
- return /* @__PURE__ */ jsx(Flex, __spreadProps(__spreadValues({ direction: "column", gap: "md" }, rest), { children }));
16
- }
17
-
18
- // src/components/Layouts/FlexRow/MyFlexRow.tsx
19
- import { Flex as Flex2 } from "@mantine/core";
20
- import { jsx as jsx2 } from "react/jsx-runtime";
21
- function MyFlexRow(_a) {
22
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
23
- return /* @__PURE__ */ jsx2(Flex2, __spreadProps(__spreadValues({ gap: "md", align: "center" }, rest), { children }));
24
- }
25
-
26
- // src/core/input/CoreDayOfWeekPicker.tsx
27
- import { Badge, Group } from "@mantine/core";
28
- import { jsx as jsx3 } from "react/jsx-runtime";
29
- var days = Object.entries(enum_daysOfWeek).filter(([key]) => isNaN(Number(key))).map(([label, value]) => ({ label, value }));
30
- function CoreDayOfWeekPicker({ value = [], onChange }) {
31
- const toggle = (val) => {
32
- if (!onChange) return;
33
- const newValue = value.includes(val) ? value.filter((v) => v !== val) : [...value, val].sort((a, b) => a - b);
34
- onChange(newValue);
35
- };
36
- return /* @__PURE__ */ jsx3(MyFlexRow, { align: "center", children: /* @__PURE__ */ jsx3(Group, { gap: "xs", children: days.map((d) => /* @__PURE__ */ jsx3(
37
- Badge,
38
- {
39
- variant: value.includes(d.value) ? "filled" : "outline",
40
- color: "blue",
41
- radius: "sm",
42
- size: "lg",
43
- onClick: () => toggle(d.value),
44
- style: { cursor: onChange ? "pointer" : "default", userSelect: "none" },
45
- children: d.label
46
- },
47
- d.value
48
- )) }) });
49
- }
50
-
51
- export {
52
- MyFlexColumn,
53
- MyFlexRow,
54
- CoreDayOfWeekPicker
55
- };