@deepnoid/ui 0.1.114 → 0.1.116
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/.turbo/turbo-build.log +210 -205
- package/dist/chunk-2Q25LXZT.mjs +316 -0
- package/dist/{chunk-UNYKQTEP.mjs → chunk-3ZH6PWFC.mjs} +2 -2
- package/dist/chunk-4DESGO3D.mjs +54 -0
- package/dist/{chunk-BKYNB52Z.mjs → chunk-676Y7NKV.mjs} +1 -1
- package/dist/{chunk-AHBBUMPX.mjs → chunk-6VNOOJDQ.mjs} +2 -2
- package/dist/{chunk-VIXHPIIF.mjs → chunk-CUCLHYCE.mjs} +3 -3
- package/dist/{chunk-L3WKBOWY.mjs → chunk-ER3SUAE2.mjs} +1 -1
- package/dist/{chunk-4NVZMJGS.mjs → chunk-F7PC2JAF.mjs} +2 -2
- package/dist/{chunk-7VTZLHKM.mjs → chunk-HD2PTCE6.mjs} +2 -2
- package/dist/{chunk-FU4CDBVG.mjs → chunk-HLYTCS7L.mjs} +1 -1
- package/dist/{chunk-DDJ2EU3P.mjs → chunk-LCWEO4U6.mjs} +40 -14
- package/dist/{chunk-2PZRTIRD.mjs → chunk-LZRBMVT7.mjs} +2 -2
- package/dist/{chunk-MTQGHQ7Z.mjs → chunk-MG5E5YZ7.mjs} +1 -1
- package/dist/{chunk-BFZ6OTVA.mjs → chunk-PHWTRXOL.mjs} +2 -2
- package/dist/{chunk-5AEN7QTL.mjs → chunk-PMSUPDDW.mjs} +1 -1
- package/dist/{chunk-QREBEXKF.mjs → chunk-RSD67ORA.mjs} +1 -1
- package/dist/{chunk-6PNKRBUT.mjs → chunk-SZL743JC.mjs} +1 -1
- package/dist/{chunk-TMHYS2DC.mjs → chunk-TO6OPRBH.mjs} +1 -1
- package/dist/{chunk-EDAREIAN.mjs → chunk-TRNL3IXF.mjs} +1 -1
- package/dist/{chunk-MLD6EZAE.mjs → chunk-UPPNTDNG.mjs} +1 -1
- package/dist/{chunk-7YCUFFKZ.mjs → chunk-VPGJ4HZ7.mjs} +1 -1
- package/dist/components/avatar/avatar.js +40 -14
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +40 -14
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +40 -14
- package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
- package/dist/components/breadcrumb/index.js +40 -14
- package/dist/components/breadcrumb/index.mjs +6 -6
- package/dist/components/button/button.js +41 -15
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +41 -15
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +41 -15
- package/dist/components/button/index.mjs +5 -5
- package/dist/components/chip/chip.js +40 -14
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +40 -14
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +41 -15
- package/dist/components/fileUpload/fileUpload.mjs +7 -7
- package/dist/components/fileUpload/index.js +41 -15
- package/dist/components/fileUpload/index.mjs +7 -7
- package/dist/components/icon/Icon.d.mts +8 -4
- package/dist/components/icon/Icon.d.ts +8 -4
- package/dist/components/icon/Icon.js +40 -14
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +40 -14
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +2 -1
- package/dist/components/icon/template.d.ts +2 -1
- package/dist/components/icon/template.js +40 -14
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +40 -14
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +40 -14
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +40 -14
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +40 -14
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +41 -15
- package/dist/components/modal/index.mjs +6 -6
- package/dist/components/modal/modal.js +41 -15
- package/dist/components/modal/modal.mjs +6 -6
- package/dist/components/pagination/index.js +40 -14
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +40 -14
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/picker/datePicker.d.mts +54 -171
- package/dist/components/picker/datePicker.d.ts +54 -171
- package/dist/components/picker/datePicker.js +1753 -399
- package/dist/components/picker/datePicker.mjs +14 -3
- package/dist/components/picker/day.d.mts +94 -0
- package/dist/components/picker/day.d.ts +94 -0
- package/dist/components/picker/day.js +414 -0
- package/dist/components/picker/day.mjs +12 -0
- package/dist/components/picker/index.d.mts +1 -0
- package/dist/components/picker/index.d.ts +1 -0
- package/dist/components/picker/index.js +2341 -983
- package/dist/components/picker/index.mjs +20 -6
- package/dist/components/picker/timePicker.js +40 -14
- package/dist/components/picker/timePicker.mjs +4 -4
- package/dist/components/ripple/index.js +1 -1
- package/dist/components/ripple/index.mjs +1 -1
- package/dist/components/ripple/useRipple.js +1 -1
- package/dist/components/ripple/useRipple.mjs +1 -1
- package/dist/components/select/index.js +40 -14
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +40 -14
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +40 -14
- package/dist/components/table/index.mjs +5 -5
- package/dist/components/table/table-body.js +40 -14
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +40 -14
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +40 -14
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/toast/index.js +40 -14
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +40 -14
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +40 -14
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tree/index.js +40 -14
- package/dist/components/tree/index.mjs +3 -3
- package/dist/components/tree/tree.js +40 -14
- package/dist/components/tree/tree.mjs +3 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +413 -455
- package/dist/index.mjs +49 -45
- package/package.json +1 -1
- package/dist/chunk-2VQM2ZBF.mjs +0 -408
- /package/dist/{chunk-ZG4WRZOU.mjs → chunk-4VWG4726.mjs} +0 -0
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
datePickerStyle,
|
|
4
4
|
datePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-2Q25LXZT.mjs";
|
|
6
|
+
import "../../chunk-4DESGO3D.mjs";
|
|
6
7
|
import "../../chunk-FWFEKWWD.mjs";
|
|
8
|
+
import "../../chunk-2GCSFWHD.mjs";
|
|
9
|
+
import "../../chunk-ER3SUAE2.mjs";
|
|
10
|
+
import "../../chunk-MY5U63QO.mjs";
|
|
11
|
+
import "../../chunk-Q364C3FI.mjs";
|
|
12
|
+
import "../../chunk-ITWKPTSD.mjs";
|
|
13
|
+
import "../../chunk-F7PC2JAF.mjs";
|
|
14
|
+
import "../../chunk-LZRBMVT7.mjs";
|
|
15
|
+
import "../../chunk-6WSACUIB.mjs";
|
|
16
|
+
import "../../chunk-LXHUO6VM.mjs";
|
|
17
|
+
import "../../chunk-SZL743JC.mjs";
|
|
7
18
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-HLYTCS7L.mjs";
|
|
9
20
|
import "../../chunk-E3G5QXSH.mjs";
|
|
10
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-LCWEO4U6.mjs";
|
|
11
22
|
import "../../chunk-CDXBML6O.mjs";
|
|
12
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
13
24
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
|
|
7
|
+
interface DayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof dayStyle> {
|
|
8
|
+
classNames?: SlotsToClasses<DaySlots>;
|
|
9
|
+
children: ReactNode | string;
|
|
10
|
+
}
|
|
11
|
+
declare const Day: react.ForwardRefExoticComponent<DayProps & react.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
declare const dayStyle: tailwind_variants.TVReturnType<{
|
|
14
|
+
variant: {
|
|
15
|
+
default: {
|
|
16
|
+
base: string[];
|
|
17
|
+
};
|
|
18
|
+
hover: {
|
|
19
|
+
base: string[];
|
|
20
|
+
};
|
|
21
|
+
selected: {
|
|
22
|
+
base: string[];
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
base: string[];
|
|
26
|
+
};
|
|
27
|
+
period: {
|
|
28
|
+
base: string[];
|
|
29
|
+
};
|
|
30
|
+
today: {
|
|
31
|
+
base: string[];
|
|
32
|
+
};
|
|
33
|
+
text: {
|
|
34
|
+
base: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
base: string[];
|
|
39
|
+
}, undefined, {
|
|
40
|
+
variant: {
|
|
41
|
+
default: {
|
|
42
|
+
base: string[];
|
|
43
|
+
};
|
|
44
|
+
hover: {
|
|
45
|
+
base: string[];
|
|
46
|
+
};
|
|
47
|
+
selected: {
|
|
48
|
+
base: string[];
|
|
49
|
+
};
|
|
50
|
+
disabled: {
|
|
51
|
+
base: string[];
|
|
52
|
+
};
|
|
53
|
+
period: {
|
|
54
|
+
base: string[];
|
|
55
|
+
};
|
|
56
|
+
today: {
|
|
57
|
+
base: string[];
|
|
58
|
+
};
|
|
59
|
+
text: {
|
|
60
|
+
base: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
base: string[];
|
|
65
|
+
}, tailwind_variants.TVReturnType<{
|
|
66
|
+
variant: {
|
|
67
|
+
default: {
|
|
68
|
+
base: string[];
|
|
69
|
+
};
|
|
70
|
+
hover: {
|
|
71
|
+
base: string[];
|
|
72
|
+
};
|
|
73
|
+
selected: {
|
|
74
|
+
base: string[];
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
base: string[];
|
|
78
|
+
};
|
|
79
|
+
period: {
|
|
80
|
+
base: string[];
|
|
81
|
+
};
|
|
82
|
+
today: {
|
|
83
|
+
base: string[];
|
|
84
|
+
};
|
|
85
|
+
text: {
|
|
86
|
+
base: string[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
base: string[];
|
|
91
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
92
|
+
type DaySlots = keyof ReturnType<typeof dayStyle>;
|
|
93
|
+
|
|
94
|
+
export { type DayProps, type DaySlots, dayStyle, Day as default };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
|
+
|
|
7
|
+
interface DayProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children">, VariantProps<typeof dayStyle> {
|
|
8
|
+
classNames?: SlotsToClasses<DaySlots>;
|
|
9
|
+
children: ReactNode | string;
|
|
10
|
+
}
|
|
11
|
+
declare const Day: react.ForwardRefExoticComponent<DayProps & react.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
|
|
13
|
+
declare const dayStyle: tailwind_variants.TVReturnType<{
|
|
14
|
+
variant: {
|
|
15
|
+
default: {
|
|
16
|
+
base: string[];
|
|
17
|
+
};
|
|
18
|
+
hover: {
|
|
19
|
+
base: string[];
|
|
20
|
+
};
|
|
21
|
+
selected: {
|
|
22
|
+
base: string[];
|
|
23
|
+
};
|
|
24
|
+
disabled: {
|
|
25
|
+
base: string[];
|
|
26
|
+
};
|
|
27
|
+
period: {
|
|
28
|
+
base: string[];
|
|
29
|
+
};
|
|
30
|
+
today: {
|
|
31
|
+
base: string[];
|
|
32
|
+
};
|
|
33
|
+
text: {
|
|
34
|
+
base: string[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
base: string[];
|
|
39
|
+
}, undefined, {
|
|
40
|
+
variant: {
|
|
41
|
+
default: {
|
|
42
|
+
base: string[];
|
|
43
|
+
};
|
|
44
|
+
hover: {
|
|
45
|
+
base: string[];
|
|
46
|
+
};
|
|
47
|
+
selected: {
|
|
48
|
+
base: string[];
|
|
49
|
+
};
|
|
50
|
+
disabled: {
|
|
51
|
+
base: string[];
|
|
52
|
+
};
|
|
53
|
+
period: {
|
|
54
|
+
base: string[];
|
|
55
|
+
};
|
|
56
|
+
today: {
|
|
57
|
+
base: string[];
|
|
58
|
+
};
|
|
59
|
+
text: {
|
|
60
|
+
base: string[];
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
base: string[];
|
|
65
|
+
}, tailwind_variants.TVReturnType<{
|
|
66
|
+
variant: {
|
|
67
|
+
default: {
|
|
68
|
+
base: string[];
|
|
69
|
+
};
|
|
70
|
+
hover: {
|
|
71
|
+
base: string[];
|
|
72
|
+
};
|
|
73
|
+
selected: {
|
|
74
|
+
base: string[];
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
base: string[];
|
|
78
|
+
};
|
|
79
|
+
period: {
|
|
80
|
+
base: string[];
|
|
81
|
+
};
|
|
82
|
+
today: {
|
|
83
|
+
base: string[];
|
|
84
|
+
};
|
|
85
|
+
text: {
|
|
86
|
+
base: string[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
}, {
|
|
90
|
+
base: string[];
|
|
91
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
92
|
+
type DaySlots = keyof ReturnType<typeof dayStyle>;
|
|
93
|
+
|
|
94
|
+
export { type DayProps, type DaySlots, dayStyle, Day as default };
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// ../../node_modules/tailwindcss/lib/util/createPlugin.js
|
|
35
|
+
var require_createPlugin = __commonJS({
|
|
36
|
+
"../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
|
|
37
|
+
"use strict";
|
|
38
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports2, "default", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _default;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function createPlugin(plugin2, config) {
|
|
48
|
+
return {
|
|
49
|
+
handler: plugin2,
|
|
50
|
+
config
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
54
|
+
const optionsFunction = function(options) {
|
|
55
|
+
return {
|
|
56
|
+
__options: options,
|
|
57
|
+
handler: pluginFunction(options),
|
|
58
|
+
config: configFunction(options)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
optionsFunction.__isOptionsFunction = true;
|
|
62
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
63
|
+
optionsFunction.__configFunction = configFunction;
|
|
64
|
+
return optionsFunction;
|
|
65
|
+
};
|
|
66
|
+
var _default = createPlugin;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/tailwindcss/lib/public/create-plugin.js
|
|
71
|
+
var require_create_plugin = __commonJS({
|
|
72
|
+
"../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
|
|
73
|
+
"use strict";
|
|
74
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports2, "default", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return _default;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var _default = _createPlugin.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../../node_modules/tailwindcss/plugin.js
|
|
94
|
+
var require_plugin = __commonJS({
|
|
95
|
+
"../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
|
|
96
|
+
"use strict";
|
|
97
|
+
var createPlugin = require_create_plugin();
|
|
98
|
+
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/components/picker/day.tsx
|
|
103
|
+
var day_exports = {};
|
|
104
|
+
__export(day_exports, {
|
|
105
|
+
dayStyle: () => dayStyle,
|
|
106
|
+
default: () => day_default
|
|
107
|
+
});
|
|
108
|
+
module.exports = __toCommonJS(day_exports);
|
|
109
|
+
var import_react = require("react");
|
|
110
|
+
|
|
111
|
+
// src/utils/tailwind-variants.ts
|
|
112
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
113
|
+
|
|
114
|
+
// ../tailwind-config/src/plugin.ts
|
|
115
|
+
var import_plugin = __toESM(require_plugin());
|
|
116
|
+
|
|
117
|
+
// ../tailwind-config/src/typography/font.ts
|
|
118
|
+
var fontSize = {
|
|
119
|
+
h1: [
|
|
120
|
+
"40px",
|
|
121
|
+
{
|
|
122
|
+
fontWeight: "700"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
h2: [
|
|
126
|
+
"34px",
|
|
127
|
+
{
|
|
128
|
+
fontWeight: "700"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
h3: [
|
|
132
|
+
"28px",
|
|
133
|
+
{
|
|
134
|
+
fontWeight: "700"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
h4: [
|
|
138
|
+
"24px",
|
|
139
|
+
{
|
|
140
|
+
fontWeight: "700"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
h5: [
|
|
144
|
+
"20px",
|
|
145
|
+
{
|
|
146
|
+
fontWeight: "600"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
sm: [
|
|
150
|
+
"12px",
|
|
151
|
+
{
|
|
152
|
+
lineHeight: "18px",
|
|
153
|
+
fontWeight: "400"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
md: [
|
|
157
|
+
"14px",
|
|
158
|
+
{
|
|
159
|
+
lineHeight: "21px",
|
|
160
|
+
fontWeight: "400"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
lg: [
|
|
164
|
+
"16px",
|
|
165
|
+
{
|
|
166
|
+
lineHeight: "24px",
|
|
167
|
+
fontWeight: "400"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
xl: [
|
|
171
|
+
"18px",
|
|
172
|
+
{
|
|
173
|
+
lineHeight: "27px",
|
|
174
|
+
fontWeight: "400"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// ../tailwind-config/src/animation/bar.ts
|
|
180
|
+
var barAnimation = {
|
|
181
|
+
"indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
|
|
182
|
+
};
|
|
183
|
+
var barKeyframe = {
|
|
184
|
+
"indeterminate-bar": {
|
|
185
|
+
"0%": {
|
|
186
|
+
transform: "translateX(-50%) scaleX(0.2)"
|
|
187
|
+
},
|
|
188
|
+
"100%": {
|
|
189
|
+
transform: "translateX(100%) scaleX(1)"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
195
|
+
var sliceAnimation = {
|
|
196
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
197
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
198
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
199
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
200
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
201
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
202
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
203
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
204
|
+
};
|
|
205
|
+
var sliceKeyframe = {
|
|
206
|
+
slideInFromTop: {
|
|
207
|
+
"0%": {
|
|
208
|
+
transform: "translateY(-10px)",
|
|
209
|
+
opacity: "0"
|
|
210
|
+
},
|
|
211
|
+
"100%": {
|
|
212
|
+
transform: "translateY(0)",
|
|
213
|
+
opacity: "1"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
slideInFromBottom: {
|
|
217
|
+
"0%": {
|
|
218
|
+
transform: "translateY(10px)",
|
|
219
|
+
opacity: "0"
|
|
220
|
+
},
|
|
221
|
+
"100%": {
|
|
222
|
+
transform: "translateY(0)",
|
|
223
|
+
opacity: "1"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
slideInFromLeft: {
|
|
227
|
+
"0%": {
|
|
228
|
+
transform: "translateX(-10px)",
|
|
229
|
+
opacity: "0"
|
|
230
|
+
},
|
|
231
|
+
"100%": {
|
|
232
|
+
transform: "translateX(0)",
|
|
233
|
+
opacity: "1"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
slideInFromRight: {
|
|
237
|
+
"0%": {
|
|
238
|
+
transform: "translateX(10px)",
|
|
239
|
+
opacity: "0"
|
|
240
|
+
},
|
|
241
|
+
"100%": {
|
|
242
|
+
transform: "translateX(0)",
|
|
243
|
+
opacity: "1"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
slideOutToTop: {
|
|
247
|
+
"0%": {
|
|
248
|
+
transform: "translateY(0)",
|
|
249
|
+
opacity: "1"
|
|
250
|
+
},
|
|
251
|
+
"100%": {
|
|
252
|
+
transform: "translateY(-10px)",
|
|
253
|
+
opacity: "0"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
slideOutToBottom: {
|
|
257
|
+
"0%": {
|
|
258
|
+
transform: "translateY(0)",
|
|
259
|
+
opacity: "1"
|
|
260
|
+
},
|
|
261
|
+
"100%": {
|
|
262
|
+
transform: "translateY(10px)",
|
|
263
|
+
opacity: "0"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
slideOutToLeft: {
|
|
267
|
+
"0%": {
|
|
268
|
+
transform: "translateX(0)",
|
|
269
|
+
opacity: "1"
|
|
270
|
+
},
|
|
271
|
+
"100%": {
|
|
272
|
+
transform: "translateX(-10px)",
|
|
273
|
+
opacity: "0"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
slideOutToRight: {
|
|
277
|
+
"0%": {
|
|
278
|
+
transform: "translateX(0)",
|
|
279
|
+
opacity: "1"
|
|
280
|
+
},
|
|
281
|
+
"100%": {
|
|
282
|
+
transform: "translateX(10px)",
|
|
283
|
+
opacity: "0"
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// ../tailwind-config/src/animation/index.ts
|
|
289
|
+
var animation = { ...sliceAnimation, ...barAnimation };
|
|
290
|
+
var keyframes = { ...sliceKeyframe, ...barKeyframe };
|
|
291
|
+
|
|
292
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
293
|
+
var boxShadow = {
|
|
294
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
295
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
296
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
297
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
298
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
299
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
300
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
301
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
302
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
303
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
304
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
305
|
+
"inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
|
|
306
|
+
"inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
|
|
307
|
+
"inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
|
|
308
|
+
"inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
|
|
309
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
|
|
310
|
+
"drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
|
|
311
|
+
"drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
|
|
312
|
+
"drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
|
|
313
|
+
"drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
// ../tailwind-config/src/border/radius.ts
|
|
317
|
+
var borderRadius = {
|
|
318
|
+
sm: "4px",
|
|
319
|
+
md: "6px",
|
|
320
|
+
lg: "8px",
|
|
321
|
+
xl: "10px",
|
|
322
|
+
none: "0",
|
|
323
|
+
full: "9999px"
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
// ../tailwind-config/src/space/gap.ts
|
|
327
|
+
var gap = {
|
|
328
|
+
sm: "4px",
|
|
329
|
+
md: "6px",
|
|
330
|
+
lg: "8px",
|
|
331
|
+
xl: "10px"
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
// src/utils/tailwind-variants.ts
|
|
335
|
+
function typedKeys(obj) {
|
|
336
|
+
return Object.keys(obj);
|
|
337
|
+
}
|
|
338
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
339
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
340
|
+
twMergeConfig: {
|
|
341
|
+
classGroups: {
|
|
342
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
343
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
344
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
345
|
+
padding: [{ p: [...COMMON_SIZE] }],
|
|
346
|
+
gap: [{ gap: [...typedKeys(gap)] }]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// src/utils/props.ts
|
|
352
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
353
|
+
if (!variantKeys) {
|
|
354
|
+
return [props, {}];
|
|
355
|
+
}
|
|
356
|
+
const picked = variantKeys.reduce((acc, key) => {
|
|
357
|
+
if (key in props) {
|
|
358
|
+
return { ...acc, [key]: props[key] };
|
|
359
|
+
} else {
|
|
360
|
+
return acc;
|
|
361
|
+
}
|
|
362
|
+
}, {});
|
|
363
|
+
if (removeVariantProps) {
|
|
364
|
+
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
365
|
+
return [omitted, picked];
|
|
366
|
+
} else {
|
|
367
|
+
return [props, picked];
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
|
|
371
|
+
// src/components/picker/day.tsx
|
|
372
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
373
|
+
var Day = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
374
|
+
const [props, variantProps] = mapPropsVariants(originalProps, dayStyle.variantKeys);
|
|
375
|
+
const { classNames, children, ...divProps } = props;
|
|
376
|
+
const slots = (0, import_react.useMemo)(() => dayStyle({ ...variantProps }), [variantProps]);
|
|
377
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ...divProps, children });
|
|
378
|
+
});
|
|
379
|
+
Day.displayName = "Day";
|
|
380
|
+
var day_default = Day;
|
|
381
|
+
var dayStyle = tv({
|
|
382
|
+
slots: {
|
|
383
|
+
base: [
|
|
384
|
+
"w-[40px]",
|
|
385
|
+
"h-[40px]",
|
|
386
|
+
"flex",
|
|
387
|
+
"justify-center",
|
|
388
|
+
"items-center",
|
|
389
|
+
"font-bold",
|
|
390
|
+
"text-sm",
|
|
391
|
+
"text-neutral-strong",
|
|
392
|
+
"rounded-xl",
|
|
393
|
+
"cursor-pointer"
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
variants: {
|
|
397
|
+
variant: {
|
|
398
|
+
default: { base: ["hover:bg-trans-soft"] },
|
|
399
|
+
hover: { base: ["bg-trans-soft"] },
|
|
400
|
+
selected: { base: ["bg-primary-main", "text-common-white"] },
|
|
401
|
+
disabled: { base: ["pointer-events-none", "bg-common-transparent", "text-neutral-light"] },
|
|
402
|
+
period: { base: ["bg-primary-soft", "rounded-none"] },
|
|
403
|
+
today: { base: ["shadow-[inset_0_0_0_2px_var(--dn-primary-light)]", "hover:bg-trans-soft"] },
|
|
404
|
+
text: { base: ["text-md"] }
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
defaultVariants: {
|
|
408
|
+
variant: "default"
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
412
|
+
0 && (module.exports = {
|
|
413
|
+
dayStyle
|
|
414
|
+
});
|