@forgedevstack/bear 1.1.8 → 1.1.9
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/README.md +4 -4
- package/dist/components/BearLogo/BearLogo.d.ts +2 -7
- package/dist/components/BearLogo/BearLogo.types.d.ts +15 -0
- package/dist/components/BearLogo/EmberLogo.d.ts +1 -8
- package/dist/components/BearLogo/index.d.ts +1 -2
- package/dist/components/Biometric/Biometric.cjs +1 -0
- package/dist/components/Biometric/Biometric.d.ts +3 -0
- package/dist/components/Biometric/Biometric.js +123 -0
- package/dist/components/Biometric/Biometric.types.d.ts +35 -0
- package/dist/components/Biometric/BiometricIcon.cjs +1 -0
- package/dist/components/Biometric/BiometricIcon.d.ts +3 -0
- package/dist/components/Biometric/BiometricIcon.js +45 -0
- package/dist/components/Biometric/index.d.ts +3 -0
- package/dist/components/Biometric/useBiometric.cjs +1 -0
- package/dist/components/Biometric/useBiometric.d.ts +2 -0
- package/dist/components/Biometric/useBiometric.js +21 -0
- package/dist/components/DateRangePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.const.cjs +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.const.js +12 -13
- package/dist/components/DateRangePicker/DateRangePicker.js +107 -81
- package/dist/components/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.js +48 -44
- package/dist/components/Input/Input.cjs +1 -1
- package/dist/components/Input/Input.js +153 -101
- package/dist/components/Input/Input.types.d.ts +8 -2
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.js +76 -76
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.js +41 -38
- package/dist/components/Tabs/TabList.cjs +1 -0
- package/dist/components/Tabs/TabList.d.ts +3 -0
- package/dist/components/Tabs/TabList.js +69 -0
- package/dist/components/Tabs/TabPanel.cjs +1 -0
- package/dist/components/Tabs/TabPanel.d.ts +3 -0
- package/dist/components/Tabs/TabPanel.js +13 -0
- package/dist/components/Tabs/Tabs.cjs +1 -1
- package/dist/components/Tabs/Tabs.d.ts +2 -27
- package/dist/components/Tabs/Tabs.js +42 -61
- package/dist/components/Tabs/Tabs.types.d.ts +4 -0
- package/dist/components/Tabs/index.d.ts +3 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.js +316 -309
- package/dist/index.cjs +1 -1
- package/dist/index.js +391 -384
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ function App() {
|
|
|
76
76
|
|
|
77
77
|
### Form Components
|
|
78
78
|
|
|
79
|
-
- `Input` - Text input
|
|
79
|
+
- `Input` / `TextField` - Text input with optional `InputProps.startAdornment` / `endAdornment` for start/end slots
|
|
80
80
|
- `Select` / `MultiSelect` - Dropdown selection components
|
|
81
81
|
- `Checkbox` - Checkbox input
|
|
82
82
|
- `Radio` / `RadioGroup` - Radio button inputs
|
|
@@ -116,7 +116,7 @@ function App() {
|
|
|
116
116
|
- `DataTable` - Advanced data table with sorting, filtering, and pagination
|
|
117
117
|
- `Carousel` - Image/content carousel
|
|
118
118
|
- `Accordion` - Collapsible content sections
|
|
119
|
-
- `Tabs` - Tabbed interface
|
|
119
|
+
- `Tabs` / `TabList` / `Tab` / `TabPanel` - Tabbed interface; `TabList` supports `maxVisibleTabs` (overflow dropdown) and `wrap` (auto-break)
|
|
120
120
|
- `List` - List component with various item types
|
|
121
121
|
- `Avatar` / `AvatarGroup` - User avatar display
|
|
122
122
|
- `Chip` - Compact element for input, attribute, or action
|
|
@@ -286,7 +286,7 @@ const buttonProps: ButtonProps = {
|
|
|
286
286
|
|
|
287
287
|
## How Bear Compares
|
|
288
288
|
|
|
289
|
-
| Feature | Bear UI |
|
|
289
|
+
| Feature | Bear UI | Material UI | Ant Design | Chakra UI |
|
|
290
290
|
|---------|---------|-----|------------|-----------|
|
|
291
291
|
| **Tailwind CSS native** | Yes | No | No | Partial (v3) |
|
|
292
292
|
| **Bundle (tree-shaken)** | ~18 kB | ~80 kB | ~120 kB | ~45 kB |
|
|
@@ -297,7 +297,7 @@ const buttonProps: ButtonProps = {
|
|
|
297
297
|
| **Modular CSS** | `@BearInclude` PostCSS | N/A | N/A | N/A |
|
|
298
298
|
| **React 18 / 19** | Yes | Yes | Yes | Yes |
|
|
299
299
|
| **Zero runtime CSS-in-JS** | Yes | No (Emotion) | No (Less) | No (Emotion) |
|
|
300
|
-
| **Built-in i18n** | Portal (en/es) |
|
|
300
|
+
| **Built-in i18n** | Portal (en/es) | X (add-on) | ConfigProvider | N/A |
|
|
301
301
|
|
|
302
302
|
## Contributing
|
|
303
303
|
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
|
|
3
|
-
/** Logo size in pixels */
|
|
4
|
-
size?: number;
|
|
5
|
-
/** Whether to show animated sparkle */
|
|
6
|
-
animated?: boolean;
|
|
7
|
-
}
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { BearLogoProps } from './BearLogo.types';
|
|
8
3
|
/**
|
|
9
4
|
* BearLogo - Lotso-inspired pink teddy bear logo from Toy Story
|
|
10
5
|
* Full body sitting teddy bear with characteristic angry eyebrows
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SVGAttributes } from 'react';
|
|
2
|
+
export interface BearLogoProps extends SVGAttributes<SVGElement> {
|
|
3
|
+
/** Logo size in pixels */
|
|
4
|
+
size?: number;
|
|
5
|
+
/** Whether to show animated sparkle */
|
|
6
|
+
animated?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface EmberLogoProps {
|
|
9
|
+
/** Logo size in pixels */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Additional class names */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Whether to animate the logo */
|
|
14
|
+
animated?: boolean;
|
|
15
|
+
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
|
|
3
|
-
/** Logo size in pixels */
|
|
4
|
-
size?: number;
|
|
5
|
-
/** Additional class names */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Whether to animate the logo */
|
|
8
|
-
animated?: boolean;
|
|
9
|
-
}
|
|
2
|
+
import { EmberLogoProps } from './BearLogo.types';
|
|
10
3
|
/**
|
|
11
4
|
* Ember Logo Component
|
|
12
5
|
* A stylized flame representing warmth, energy, and the forge
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),N=require("react"),n=require("../../utils/cn.cjs"),q=require("./BiometricIcon.cjs"),z=require("./useBiometric.cjs"),M={sm:48,md:72,lg:96,xl:128},_={sm:80,md:120,lg:160,xl:200},g={idle:"bear-text-gray-500 dark:bear-text-gray-400",scanning:"bear-text-bear-500 dark:bear-text-bear-400",success:"bear-text-green-500 dark:bear-text-green-400",error:"bear-text-red-500 dark:bear-text-red-400"},i={idle:"var(--bear-border-default)",scanning:"var(--bear-primary-500, #ec4899)",success:"var(--bear-success-500, #22c55e)",error:"var(--bear-danger-500, #ef4444)"},w=({type:b="fingerprint",size:l="md",status:o,label:m,successLabel:p="Verified",errorLabel:x="Try again",scanningLabel:f="Scanning...",onScan:a,onSuccess:y,onError:v,disabled:s=!1,animated:t=!0,className:j,testId:B})=>{const{status:k,scan:u}=z.useBiometric({onSuccess:y,onError:v}),e=o??k,C=M[l],d=_[l],c=e==="scanning"?f:e==="success"?p:e==="error"?x:m,h=N.useCallback(()=>{s||e==="scanning"||(a==null||a(),o===void 0&&u())},[s,e,a,o,u]);return r.jsxs("div",{className:n.cn("Bear-Biometric bear-flex bear-flex-col bear-items-center bear-gap-3",j),"data-testid":B,"data-status":e,"data-type":b,children:[r.jsxs("button",{type:"button",disabled:s||e==="scanning",onClick:h,className:n.cn("Bear-Biometric__trigger bear-relative bear-flex bear-items-center bear-justify-center bear-rounded-full bear-border-0 bear-cursor-pointer bear-outline-none","bear-transition-all bear-duration-300","focus-visible:bear-ring-2 focus-visible:bear-ring-bear-500 focus-visible:bear-ring-offset-2",g[e],s&&"bear-opacity-40 bear-cursor-not-allowed"),style:{width:d,height:d,backgroundColor:"var(--bear-bg-secondary)"},"aria-label":c??"Authenticate",children:[t&&e==="scanning"&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"bear-absolute bear-inset-0 bear-rounded-full bear-animate-ping bear-opacity-20",style:{backgroundColor:i[e]}}),r.jsx("span",{className:"bear-absolute bear-inset-2 bear-rounded-full bear-animate-ping bear-opacity-10",style:{backgroundColor:i[e],animationDelay:"0.3s"}})]}),r.jsx("span",{className:n.cn("bear-absolute bear-inset-0 bear-rounded-full bear-border-2 bear-transition-colors bear-duration-300",e==="scanning"&&t&&"bear-animate-spin"),style:{borderColor:i[e],borderStyle:e==="scanning"?"dashed":"solid",animationDuration:e==="scanning"?"3s":void 0}}),t&&e==="success"&&r.jsx("span",{className:"bear-absolute bear-inset-0 bear-rounded-full bear-opacity-10",style:{backgroundColor:i.success}}),r.jsx(q.BiometricIcon,{type:b,size:C,status:e,animated:t})]}),c&&r.jsx("span",{className:n.cn("Bear-Biometric__label bear-text-sm bear-font-medium bear-transition-colors bear-duration-300",g[e]),children:c})]})};exports.Biometric=w;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsxs as c, Fragment as _, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as j } from "react";
|
|
3
|
+
import { cn as n } from "../../utils/cn.js";
|
|
4
|
+
import { BiometricIcon as M } from "./BiometricIcon.js";
|
|
5
|
+
import { useBiometric as w } from "./useBiometric.js";
|
|
6
|
+
const D = { sm: 48, md: 72, lg: 96, xl: 128 }, A = { sm: 80, md: 120, lg: 160, xl: 200 }, g = {
|
|
7
|
+
idle: "bear-text-gray-500 dark:bear-text-gray-400",
|
|
8
|
+
scanning: "bear-text-bear-500 dark:bear-text-bear-400",
|
|
9
|
+
success: "bear-text-green-500 dark:bear-text-green-400",
|
|
10
|
+
error: "bear-text-red-500 dark:bear-text-red-400"
|
|
11
|
+
}, i = {
|
|
12
|
+
idle: "var(--bear-border-default)",
|
|
13
|
+
scanning: "var(--bear-primary-500, #ec4899)",
|
|
14
|
+
success: "var(--bear-success-500, #22c55e)",
|
|
15
|
+
error: "var(--bear-danger-500, #ef4444)"
|
|
16
|
+
}, q = ({
|
|
17
|
+
type: l = "fingerprint",
|
|
18
|
+
size: u = "md",
|
|
19
|
+
status: o,
|
|
20
|
+
label: p,
|
|
21
|
+
successLabel: f = "Verified",
|
|
22
|
+
errorLabel: y = "Try again",
|
|
23
|
+
scanningLabel: x = "Scanning...",
|
|
24
|
+
onScan: a,
|
|
25
|
+
onSuccess: v,
|
|
26
|
+
onError: k,
|
|
27
|
+
disabled: s = !1,
|
|
28
|
+
animated: t = !0,
|
|
29
|
+
className: C,
|
|
30
|
+
testId: h
|
|
31
|
+
}) => {
|
|
32
|
+
const { status: B, scan: d } = w({
|
|
33
|
+
onSuccess: v,
|
|
34
|
+
onError: k
|
|
35
|
+
}), e = o ?? B, N = D[u], m = A[u], b = e === "scanning" ? x : e === "success" ? f : e === "error" ? y : p, z = j(() => {
|
|
36
|
+
s || e === "scanning" || (a == null || a(), o === void 0 && d());
|
|
37
|
+
}, [s, e, a, o, d]);
|
|
38
|
+
return /* @__PURE__ */ c(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: n("Bear-Biometric bear-flex bear-flex-col bear-items-center bear-gap-3", C),
|
|
42
|
+
"data-testid": h,
|
|
43
|
+
"data-status": e,
|
|
44
|
+
"data-type": l,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ c(
|
|
47
|
+
"button",
|
|
48
|
+
{
|
|
49
|
+
type: "button",
|
|
50
|
+
disabled: s || e === "scanning",
|
|
51
|
+
onClick: z,
|
|
52
|
+
className: n(
|
|
53
|
+
"Bear-Biometric__trigger bear-relative bear-flex bear-items-center bear-justify-center bear-rounded-full bear-border-0 bear-cursor-pointer bear-outline-none",
|
|
54
|
+
"bear-transition-all bear-duration-300",
|
|
55
|
+
"focus-visible:bear-ring-2 focus-visible:bear-ring-bear-500 focus-visible:bear-ring-offset-2",
|
|
56
|
+
g[e],
|
|
57
|
+
s && "bear-opacity-40 bear-cursor-not-allowed"
|
|
58
|
+
),
|
|
59
|
+
style: {
|
|
60
|
+
width: m,
|
|
61
|
+
height: m,
|
|
62
|
+
backgroundColor: "var(--bear-bg-secondary)"
|
|
63
|
+
},
|
|
64
|
+
"aria-label": b ?? "Authenticate",
|
|
65
|
+
children: [
|
|
66
|
+
t && e === "scanning" && /* @__PURE__ */ c(_, { children: [
|
|
67
|
+
/* @__PURE__ */ r(
|
|
68
|
+
"span",
|
|
69
|
+
{
|
|
70
|
+
className: "bear-absolute bear-inset-0 bear-rounded-full bear-animate-ping bear-opacity-20",
|
|
71
|
+
style: { backgroundColor: i[e] }
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ r(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
className: "bear-absolute bear-inset-2 bear-rounded-full bear-animate-ping bear-opacity-10",
|
|
78
|
+
style: { backgroundColor: i[e], animationDelay: "0.3s" }
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
] }),
|
|
82
|
+
/* @__PURE__ */ r(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
className: n(
|
|
86
|
+
"bear-absolute bear-inset-0 bear-rounded-full bear-border-2 bear-transition-colors bear-duration-300",
|
|
87
|
+
e === "scanning" && t && "bear-animate-spin"
|
|
88
|
+
),
|
|
89
|
+
style: {
|
|
90
|
+
borderColor: i[e],
|
|
91
|
+
borderStyle: e === "scanning" ? "dashed" : "solid",
|
|
92
|
+
animationDuration: e === "scanning" ? "3s" : void 0
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
t && e === "success" && /* @__PURE__ */ r(
|
|
97
|
+
"span",
|
|
98
|
+
{
|
|
99
|
+
className: "bear-absolute bear-inset-0 bear-rounded-full bear-opacity-10",
|
|
100
|
+
style: { backgroundColor: i.success }
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
/* @__PURE__ */ r(M, { type: l, size: N, status: e, animated: t })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
b && /* @__PURE__ */ r(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: n(
|
|
111
|
+
"Bear-Biometric__label bear-text-sm bear-font-medium bear-transition-colors bear-duration-300",
|
|
112
|
+
g[e]
|
|
113
|
+
),
|
|
114
|
+
children: b
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
};
|
|
121
|
+
export {
|
|
122
|
+
q as Biometric
|
|
123
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type BiometricType = 'fingerprint' | 'face' | 'iris';
|
|
2
|
+
export type BiometricStatus = 'idle' | 'scanning' | 'success' | 'error';
|
|
3
|
+
export interface BiometricProps {
|
|
4
|
+
type?: BiometricType;
|
|
5
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
status?: BiometricStatus;
|
|
7
|
+
label?: string;
|
|
8
|
+
successLabel?: string;
|
|
9
|
+
errorLabel?: string;
|
|
10
|
+
scanningLabel?: string;
|
|
11
|
+
onScan?: () => void;
|
|
12
|
+
onSuccess?: () => void;
|
|
13
|
+
onError?: () => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
animated?: boolean;
|
|
16
|
+
className?: string;
|
|
17
|
+
testId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface BiometricIconProps {
|
|
20
|
+
type: BiometricType;
|
|
21
|
+
size: number;
|
|
22
|
+
status: BiometricStatus;
|
|
23
|
+
animated: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface UseBiometricOptions {
|
|
26
|
+
scanDuration?: number;
|
|
27
|
+
successDuration?: number;
|
|
28
|
+
onSuccess?: () => void;
|
|
29
|
+
onError?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export interface UseBiometricReturn {
|
|
32
|
+
status: BiometricStatus;
|
|
33
|
+
scan: () => void;
|
|
34
|
+
reset: () => void;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),n=require("../../utils/cn.cjs");require("react");const i=({size:o})=>r.jsxs("svg",{width:o,height:o,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M32 8C20.954 8 12 16.954 12 28v8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.3"}),r.jsx("path",{d:"M52 28v8c0 11.046-8.954 20-20 20",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.3"}),r.jsx("path",{d:"M18 24c0-7.732 6.268-14 14-14s14 6.268 14 14",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.5"}),r.jsx("path",{d:"M18 24v12c0 7.732 6.268 14 14 14",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.5"}),r.jsx("path",{d:"M46 24v12c0 4.418-2.239 8.313-5.644 10.607",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.5"}),r.jsx("path",{d:"M24 22c0-4.418 3.582-8 8-8s8 3.582 8 8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.7"}),r.jsx("path",{d:"M24 22v14c0 4.418 3.582 8 8 8s8-3.582 8-8V22",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.7"}),r.jsx("path",{d:"M28 22c0-2.209 1.791-4 4-4s4 1.791 4 4v14c0 2.209-1.791 4-4 4s-4-1.791-4-4V22z",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),r.jsx("path",{d:"M32 22v14",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}),a=({size:o})=>r.jsxs("svg",{width:o,height:o,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12 20V12h8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M52 20V12h-8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M12 44v8h8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("path",{d:"M52 44v8h-8",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),r.jsx("circle",{cx:"24",cy:"28",r:"2.5",fill:"currentColor"}),r.jsx("circle",{cx:"40",cy:"28",r:"2.5",fill:"currentColor"}),r.jsx("path",{d:"M26 40c1.5 2 3.5 3 6 3s4.5-1 6-3",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),r.jsx("path",{d:"M28 34h8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",opacity:"0.5"})]}),d=({size:o})=>r.jsxs("svg",{width:o,height:o,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("ellipse",{cx:"32",cy:"32",rx:"24",ry:"14",stroke:"currentColor",strokeWidth:"2.5",opacity:"0.4"}),r.jsx("circle",{cx:"32",cy:"32",r:"10",stroke:"currentColor",strokeWidth:"2.5",opacity:"0.7"}),r.jsx("circle",{cx:"32",cy:"32",r:"5",fill:"currentColor",opacity:"0.9"}),r.jsx("circle",{cx:"34",cy:"30",r:"1.5",fill:"var(--bear-bg-primary, #fff)"}),r.jsx("path",{d:"M8 32c6-12 16-18 24-18s18 6 24 18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.3"}),r.jsx("path",{d:"M8 32c6 12 16 18 24 18s18-6 24-18",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",opacity:"0.3"})]}),k={fingerprint:i,face:a,iris:d},p=({type:o,size:t,status:e,animated:s})=>{const c=k[o];return r.jsx("div",{className:n.cn("Bear-Biometric__icon bear-relative bear-flex bear-items-center bear-justify-center",s&&e==="scanning"&&"bear-animate-pulse"),children:r.jsx(c,{size:t})})};exports.BiometricIcon=p;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as s } from "../../utils/cn.js";
|
|
3
|
+
import "react";
|
|
4
|
+
const a = ({ size: o }) => /* @__PURE__ */ t("svg", { width: o, height: o, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
5
|
+
/* @__PURE__ */ r("path", { d: "M32 8C20.954 8 12 16.954 12 28v8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.3" }),
|
|
6
|
+
/* @__PURE__ */ r("path", { d: "M52 28v8c0 11.046-8.954 20-20 20", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.3" }),
|
|
7
|
+
/* @__PURE__ */ r("path", { d: "M18 24c0-7.732 6.268-14 14-14s14 6.268 14 14", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.5" }),
|
|
8
|
+
/* @__PURE__ */ r("path", { d: "M18 24v12c0 7.732 6.268 14 14 14", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.5" }),
|
|
9
|
+
/* @__PURE__ */ r("path", { d: "M46 24v12c0 4.418-2.239 8.313-5.644 10.607", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.5" }),
|
|
10
|
+
/* @__PURE__ */ r("path", { d: "M24 22c0-4.418 3.582-8 8-8s8 3.582 8 8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.7" }),
|
|
11
|
+
/* @__PURE__ */ r("path", { d: "M24 22v14c0 4.418 3.582 8 8 8s8-3.582 8-8V22", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.7" }),
|
|
12
|
+
/* @__PURE__ */ r("path", { d: "M28 22c0-2.209 1.791-4 4-4s4 1.791 4 4v14c0 2.209-1.791 4-4 4s-4-1.791-4-4V22z", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round" }),
|
|
13
|
+
/* @__PURE__ */ r("path", { d: "M32 22v14", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round" })
|
|
14
|
+
] }), d = ({ size: o }) => /* @__PURE__ */ t("svg", { width: o, height: o, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
15
|
+
/* @__PURE__ */ r("path", { d: "M12 20V12h8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
16
|
+
/* @__PURE__ */ r("path", { d: "M52 20V12h-8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
17
|
+
/* @__PURE__ */ r("path", { d: "M12 44v8h8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
18
|
+
/* @__PURE__ */ r("path", { d: "M52 44v8h-8", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
19
|
+
/* @__PURE__ */ r("circle", { cx: "24", cy: "28", r: "2.5", fill: "currentColor" }),
|
|
20
|
+
/* @__PURE__ */ r("circle", { cx: "40", cy: "28", r: "2.5", fill: "currentColor" }),
|
|
21
|
+
/* @__PURE__ */ r("path", { d: "M26 40c1.5 2 3.5 3 6 3s4.5-1 6-3", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round" }),
|
|
22
|
+
/* @__PURE__ */ r("path", { d: "M28 34h8", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", opacity: "0.5" })
|
|
23
|
+
] }), p = ({ size: o }) => /* @__PURE__ */ t("svg", { width: o, height: o, viewBox: "0 0 64 64", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
24
|
+
/* @__PURE__ */ r("ellipse", { cx: "32", cy: "32", rx: "24", ry: "14", stroke: "currentColor", strokeWidth: "2.5", opacity: "0.4" }),
|
|
25
|
+
/* @__PURE__ */ r("circle", { cx: "32", cy: "32", r: "10", stroke: "currentColor", strokeWidth: "2.5", opacity: "0.7" }),
|
|
26
|
+
/* @__PURE__ */ r("circle", { cx: "32", cy: "32", r: "5", fill: "currentColor", opacity: "0.9" }),
|
|
27
|
+
/* @__PURE__ */ r("circle", { cx: "34", cy: "30", r: "1.5", fill: "var(--bear-bg-primary, #fff)" }),
|
|
28
|
+
/* @__PURE__ */ r("path", { d: "M8 32c6-12 16-18 24-18s18 6 24 18", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.3" }),
|
|
29
|
+
/* @__PURE__ */ r("path", { d: "M8 32c6 12 16 18 24 18s18-6 24-18", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", opacity: "0.3" })
|
|
30
|
+
] }), k = { fingerprint: a, face: d, iris: p }, C = ({ type: o, size: e, status: c, animated: n }) => {
|
|
31
|
+
const i = k[o];
|
|
32
|
+
return /* @__PURE__ */ r(
|
|
33
|
+
"div",
|
|
34
|
+
{
|
|
35
|
+
className: s(
|
|
36
|
+
"Bear-Biometric__icon bear-relative bear-flex bear-items-center bear-justify-center",
|
|
37
|
+
n && c === "scanning" && "bear-animate-pulse"
|
|
38
|
+
),
|
|
39
|
+
children: /* @__PURE__ */ r(i, { size: e })
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
C as BiometricIcon
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),d=(o={})=>{const{scanDuration:a=2e3,successDuration:r=1500,onSuccess:c,onError:u}=o,[i,e]=s.useState("idle"),t=s.useRef(),n=s.useCallback(()=>{t.current&&clearTimeout(t.current)},[]),l=s.useCallback(()=>{n(),e("idle")},[n]),m=s.useCallback(()=>{i!=="scanning"&&(n(),e("scanning"),t.current=setTimeout(()=>{Math.random()>.2?(e("success"),c==null||c(),t.current=setTimeout(()=>e("idle"),r)):(e("error"),u==null||u(),t.current=setTimeout(()=>e("idle"),r))},a))},[i,n,a,r,c,u]);return{status:i,scan:m,reset:l}};exports.useBiometric=d;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useState as f, useRef as d, useCallback as i } from "react";
|
|
2
|
+
const S = (a = {}) => {
|
|
3
|
+
const {
|
|
4
|
+
scanDuration: o = 2e3,
|
|
5
|
+
successDuration: r = 1500,
|
|
6
|
+
onSuccess: s,
|
|
7
|
+
onError: c
|
|
8
|
+
} = a, [u, e] = f("idle"), t = d(), n = i(() => {
|
|
9
|
+
t.current && clearTimeout(t.current);
|
|
10
|
+
}, []), l = i(() => {
|
|
11
|
+
n(), e("idle");
|
|
12
|
+
}, [n]), m = i(() => {
|
|
13
|
+
u !== "scanning" && (n(), e("scanning"), t.current = setTimeout(() => {
|
|
14
|
+
Math.random() > 0.2 ? (e("success"), s == null || s(), t.current = setTimeout(() => e("idle"), r)) : (e("error"), c == null || c(), t.current = setTimeout(() => e("idle"), r));
|
|
15
|
+
}, o));
|
|
16
|
+
}, [u, n, o, r, s, c]);
|
|
17
|
+
return { status: u, scan: m, reset: l };
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
S as useBiometric
|
|
21
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),X=require("react-dom"),h=require("../../utils/cn.cjs"),r=require("./DateRangePicker.const.cjs"),b=require("./DateRangePicker.utils.cjs"),O=({year:E,month:d,range:a,onDayClick:k,onNav:L,minDate:u,maxDate:A})=>{const C=b.getCalendarDays(E,d),x=new Date;return x.setHours(0,0,0,0),e.jsxs("div",{className:"bear-w-64",children:[e.jsxs("div",{className:r.CALENDAR_HEADER_CLASSES,children:[e.jsx("button",{type:"button",onClick:()=>L(-1),className:r.NAV_BTN_CLASSES,"aria-label":"Previous month",children:e.jsx("svg",{className:"bear-w-4 bear-h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),e.jsxs("span",{className:"bear-text-sm bear-font-semibold bear-text-gray-900 dark:bear-text-white",children:[r.MONTH_LABELS[d]," ",E]}),e.jsx("button",{type:"button",onClick:()=>L(1),className:r.NAV_BTN_CLASSES,"aria-label":"Next month",children:e.jsx("svg",{className:"bear-w-4 bear-h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),e.jsx("div",{className:"bear-grid bear-grid-cols-7 bear-gap-0.5 bear-mb-1",children:r.DAY_LABELS.map(n=>e.jsx("div",{className:"bear-text-xs bear-text-center bear-font-medium bear-text-gray-400 dark:bear-text-zinc-500 bear-py-1",children:n},n))}),e.jsx("div",{className:"bear-grid bear-grid-cols-7 bear-gap-0.5",children:C.map((n,_)=>{if(!n)return e.jsx("div",{},`e-${_}`);const p=u&&n<u||A&&n>A,i=b.isSameDay(n,a.start)||b.isSameDay(n,a.end),S=b.isInRange(n,a.start,a.end),D=b.isSameDay(n,x);return e.jsx("button",{type:"button",disabled:!!p,onClick:()=>k(n),className:h.cn(r.DAY_BASE_CLASSES,p?r.DAY_DISABLED_CLASSES:r.DAY_HOVER_CLASSES,i&&r.DAY_SELECTED_CLASSES,!i&&S&&r.DAY_IN_RANGE_CLASSES,!i&&!S&&D&&r.DAY_TODAY_CLASSES,!i&&!S&&!p&&"bear-text-gray-700 dark:bear-text-zinc-300"),children:n.getDate()},n.getTime())})})]})},ee=E=>{const{value:d,onChange:a,label:k,placeholder:L="Select date range",disabled:u=!1,clearable:A=!0,minDate:C,maxDate:x,presets:n,showPresets:_=!0,size:p="md",error:i,helperText:S,className:D,testId:I,...q}=E,[N,w]=s.useState(!1),[P,V]=s.useState({top:0,left:0}),[c,f]=s.useState(d??{start:null,end:null}),[T,j]=s.useState("start"),B=s.useRef(null),R=s.useRef(null),Y=s.useRef(null),M=new Date,[m,$]=s.useState(M.getMonth()),[g,G]=s.useState(M.getFullYear()),W=m===11?0:m+1,F=m===11?g+1:g;s.useEffect(()=>{d&&f(d)},[d]),s.useEffect(()=>{if(N&&R.current){const t=R.current.getBoundingClientRect(),o=8,l=400,U=window.innerHeight-t.bottom<l&&t.top>l;V({top:U?t.top-l-o:t.bottom+o,left:t.left})}},[N]),s.useEffect(()=>{const t=o=>{var v,y;const l=o.target;(v=B.current)!=null&&v.contains(l)||(y=Y.current)!=null&&y.contains(l)||w(!1)};return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[]);const H=s.useCallback(t=>{if(T==="start")f({start:t,end:null}),j("end");else{const o=t>=(c.start??t)?{start:c.start,end:t}:{start:t,end:c.start};f(o),j("start"),a==null||a(o)}},[T,c.start,a]),Z=s.useCallback(t=>{f(t),a==null||a(t),w(!1),j("start")},[a]),J=s.useCallback(()=>{const t={start:null,end:null};f(t),a==null||a(t),j("start")},[a]),K=s.useCallback(t=>{let o=m+t,l=g;o<0&&(o=11,l--),o>11&&(o=0,l++),$(o),G(l)},[m,g]),z=n??(_?r.getDefaultPresets():[]),Q=c.start?`${b.formatDate(c.start)}${c.end?` – ${b.formatDate(c.end)}`:""}`:L;return e.jsxs("div",{ref:B,className:h.cn(r.ROOT_CLASSES,D),"data-testid":I,...q,children:[k&&e.jsx("label",{className:r.LABEL_CLASSES,children:k}),e.jsxs("button",{ref:R,type:"button",disabled:u,onClick:()=>!u&&w(!N),className:h.cn(r.TRIGGER_CLASSES,r.SIZE_CLASSES[p],u&&"bear-opacity-50 bear-cursor-not-allowed"),children:[e.jsx("span",{className:h.cn(!c.start&&"bear-text-gray-400 dark:bear-text-zinc-500"),children:Q}),e.jsx("svg",{className:"bear-w-4 bear-h-4 bear-ml-2 bear-text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})]}),N&&typeof document<"u"&&X.createPortal(e.jsx("div",{ref:Y,"data-bear-daterangepicker-dropdown":!0,className:h.cn("bear-fixed bear-z-[9999] bear-bg-white dark:bear-bg-zinc-800 bear-border bear-border-gray-200 dark:bear-border-zinc-700 bear-rounded-xl bear-shadow-xl bear-p-4"),style:{top:P.top,left:P.left},children:e.jsxs("div",{className:"bear-flex bear-gap-4",children:[z.length>0&&e.jsxs("div",{className:"bear-border-r bear-border-gray-200 dark:bear-border-zinc-700 bear-pr-3 bear-space-y-1 bear-min-w-[120px]",children:[z.map(t=>e.jsx("button",{type:"button",onClick:()=>Z(t.range()),className:r.PRESET_BTN_CLASSES,children:t.label},t.label)),A&&c.start&&e.jsx("button",{type:"button",onClick:J,className:h.cn(r.PRESET_BTN_CLASSES,"bear-text-red-500"),children:"Clear"})]}),e.jsx(O,{year:g,month:m,range:c,onDayClick:H,onNav:K,minDate:C,maxDate:x}),e.jsx(O,{year:F,month:W,range:c,onDayClick:H,onNav:()=>{},minDate:C,maxDate:x})]})}),document.body),i&&e.jsx("p",{className:r.ERROR_CLASSES,children:i}),!i&&S&&e.jsx("p",{className:r.HELPER_CLASSES,children:S})]})};exports.DateRangePicker=ee;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=7,b=6,S=["Su","Mo","Tu","We","Th","Fr","Sa"],n=["January","February","March","April","May","June","July","August","September","October","November","December"],E={sm:"bear-py-1.5 bear-px-3 bear-text-sm",md:"bear-py-2 bear-px-4 bear-text-base",lg:"bear-py-2.5 bear-px-5 bear-text-lg"},o="Bear-DateRangePicker bear-relative bear-inline-block",A="bear-w-full bear-flex bear-items-center bear-justify-between bear-rounded-lg bear-border bear-border-gray-300 dark:bear-border-zinc-600 bear-bg-white dark:bear-bg-zinc-800 bear-text-gray-900 dark:bear-text-white bear-transition-colors focus:bear-ring-2 focus:bear-ring-pink-500 bear-outline-none",s="bear-flex bear-items-center bear-justify-between bear-mb-2",_="bear-p-1 bear-rounded hover:bear-bg-gray-100 dark:hover:bear-bg-zinc-700 bear-text-gray-500 dark:bear-text-zinc-400",L="bear-w-8 bear-h-8 bear-text-sm bear-rounded-full bear-transition-colors bear-cursor-pointer",c="bear-bg-pink-500 bear-text-white",D="bear-bg-pink-100 dark:bear-bg-pink-900/30 bear-text-pink-800 dark:bear-text-pink-200",i="hover:bear-bg-gray-100 dark:hover:bear-bg-zinc-700",g="bear-text-gray-300 dark:bear-text-zinc-600 bear-cursor-not-allowed",l="bear-ring-1 bear-ring-pink-400",d="bear-w-full bear-text-left bear-px-3 bear-py-1.5 bear-text-sm bear-rounded bear-transition-colors hover:bear-bg-pink-50 dark:hover:bear-bg-pink-900/20 bear-text-gray-700 dark:bear-text-zinc-300",u="Bear-DateRangePicker__label bear-block bear-text-sm bear-font-medium bear-text-gray-700 dark:bear-text-zinc-300 bear-mb-1.5",C="bear-mt-1 bear-text-xs bear-text-red-500",x="bear-mt-1 bear-text-xs bear-text-gray-500 dark:bear-text-zinc-500",R=()=>{const e=new Date;return e.setHours(0,0,0,0),[{label:"Today",range:()=>({start:new Date(e),end:new Date(e)})},{label:"Last 7 days",range:()=>{const r=new Date(e);return r.setDate(r.getDate()-6),{start:r,end:new Date(e)}}},{label:"Last 30 days",range:()=>{const r=new Date(e);return r.setDate(r.getDate()-29),{start:r,end:new Date(e)}}},{label:"This month",range:()=>({start:new Date(e.getFullYear(),e.getMonth(),1),end:new Date(e)})},{label:"Last month",range:()=>{const r=new Date(e.getFullYear(),e.getMonth()-1,1),t=new Date(e.getFullYear(),e.getMonth(),0);return{start:r,end:t}}}]};exports.CALENDAR_HEADER_CLASSES=s;exports.CALENDAR_ROWS=b;exports.DAYS_IN_WEEK=a;exports.DAY_BASE_CLASSES=L;exports.DAY_DISABLED_CLASSES=g;exports.DAY_HOVER_CLASSES=i;exports.DAY_IN_RANGE_CLASSES=D;exports.DAY_LABELS=S;exports.DAY_SELECTED_CLASSES=c;exports.DAY_TODAY_CLASSES=l;exports.ERROR_CLASSES=C;exports.HELPER_CLASSES=x;exports.LABEL_CLASSES=u;exports.MONTH_LABELS=n;exports.NAV_BTN_CLASSES=_;exports.PRESET_BTN_CLASSES=d;exports.ROOT_CLASSES=o;exports.SIZE_CLASSES=E;exports.TRIGGER_CLASSES=A;exports.getDefaultPresets=R;
|
|
@@ -15,7 +15,7 @@ const t = 7, b = 6, n = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], o = [
|
|
|
15
15
|
sm: "bear-py-1.5 bear-px-3 bear-text-sm",
|
|
16
16
|
md: "bear-py-2 bear-px-4 bear-text-base",
|
|
17
17
|
lg: "bear-py-2.5 bear-px-5 bear-text-lg"
|
|
18
|
-
}, S = "Bear-DateRangePicker bear-relative bear-inline-block", c = "bear-w-full bear-flex bear-items-center bear-justify-between bear-rounded-lg bear-border bear-border-gray-300 dark:bear-border-zinc-600 bear-bg-white dark:bear-bg-zinc-800 bear-text-gray-900 dark:bear-text-white bear-transition-colors focus:bear-ring-2 focus:bear-ring-pink-500 bear-outline-none", i = "bear-
|
|
18
|
+
}, S = "Bear-DateRangePicker bear-relative bear-inline-block", c = "bear-w-full bear-flex bear-items-center bear-justify-between bear-rounded-lg bear-border bear-border-gray-300 dark:bear-border-zinc-600 bear-bg-white dark:bear-bg-zinc-800 bear-text-gray-900 dark:bear-text-white bear-transition-colors focus:bear-ring-2 focus:bear-ring-pink-500 bear-outline-none", i = "bear-flex bear-items-center bear-justify-between bear-mb-2", g = "bear-p-1 bear-rounded hover:bear-bg-gray-100 dark:hover:bear-bg-zinc-700 bear-text-gray-500 dark:bear-text-zinc-400", l = "bear-w-8 bear-h-8 bear-text-sm bear-rounded-full bear-transition-colors bear-cursor-pointer", A = "bear-bg-pink-500 bear-text-white", E = "bear-bg-pink-100 dark:bear-bg-pink-900/30 bear-text-pink-800 dark:bear-text-pink-200", d = "hover:bear-bg-gray-100 dark:hover:bear-bg-zinc-700", x = "bear-text-gray-300 dark:bear-text-zinc-600 bear-cursor-not-allowed", D = "bear-ring-1 bear-ring-pink-400", u = "bear-w-full bear-text-left bear-px-3 bear-py-1.5 bear-text-sm bear-rounded bear-transition-colors hover:bear-bg-pink-50 dark:hover:bear-bg-pink-900/20 bear-text-gray-700 dark:bear-text-zinc-300", _ = "Bear-DateRangePicker__label bear-block bear-text-sm bear-font-medium bear-text-gray-700 dark:bear-text-zinc-300 bear-mb-1.5", L = "bear-mt-1 bear-text-xs bear-text-red-500", k = "bear-mt-1 bear-text-xs bear-text-gray-500 dark:bear-text-zinc-500", y = () => {
|
|
19
19
|
const e = /* @__PURE__ */ new Date();
|
|
20
20
|
return e.setHours(0, 0, 0, 0), [
|
|
21
21
|
{
|
|
@@ -50,25 +50,24 @@ const t = 7, b = 6, n = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], o = [
|
|
|
50
50
|
];
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
i as CALENDAR_HEADER_CLASSES,
|
|
54
54
|
b as CALENDAR_ROWS,
|
|
55
55
|
t as DAYS_IN_WEEK,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
l as DAY_BASE_CLASSES,
|
|
57
|
+
x as DAY_DISABLED_CLASSES,
|
|
58
|
+
d as DAY_HOVER_CLASSES,
|
|
59
59
|
E as DAY_IN_RANGE_CLASSES,
|
|
60
60
|
n as DAY_LABELS,
|
|
61
61
|
A as DAY_SELECTED_CLASSES,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
k as
|
|
65
|
-
|
|
66
|
-
L as LABEL_CLASSES,
|
|
62
|
+
D as DAY_TODAY_CLASSES,
|
|
63
|
+
L as ERROR_CLASSES,
|
|
64
|
+
k as HELPER_CLASSES,
|
|
65
|
+
_ as LABEL_CLASSES,
|
|
67
66
|
o as MONTH_LABELS,
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
g as NAV_BTN_CLASSES,
|
|
68
|
+
u as PRESET_BTN_CLASSES,
|
|
70
69
|
S as ROOT_CLASSES,
|
|
71
70
|
s as SIZE_CLASSES,
|
|
72
71
|
c as TRIGGER_CLASSES,
|
|
73
|
-
|
|
72
|
+
y as getDefaultPresets
|
|
74
73
|
};
|