@cupra/ui-react 2.0.0-canary.234 → 2.0.0-canary.236
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../_virtual/_rolldown/runtime.cjs")
|
|
1
|
+
const e=require("../../_virtual/_rolldown/runtime.cjs");let t=require("react");t=e.__toESM(t,1);let n=require("@cupra/ui-kit/react/utils/version"),r=require("react/jsx-runtime");require("@cupra/ui-kit/react/ds-date-picker");var i=`ds-date-picker${n.VERSION_TAG_SUFFIX}`;function a(e){let{className:t,children:n,onChange:a,inputId:o,value:s,defaultValue:c,max:l=`9999-12-31`,label:u,required:d,disabled:f,readOnly:p,...m}=e,h=s===void 0?{defaultValue:c}:{value:s};return(0,r.jsxs)(i,{class:t,...m,children:[(0,r.jsx)(`label`,{htmlFor:o,children:u}),(0,r.jsx)(`input`,{id:o,type:`date`,...h,max:l,onChange:a,required:d,disabled:f,readOnly:p}),n]})}exports.DatePicker=a;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { useHandleEvent as e } from "../../hooks/useHandleEvent.js";
|
|
2
1
|
import "react";
|
|
3
|
-
import { VERSION_TAG_SUFFIX as
|
|
4
|
-
import { jsx as
|
|
2
|
+
import { VERSION_TAG_SUFFIX as e } from "@cupra/ui-kit/react/utils/version";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
4
|
import "@cupra/ui-kit/react/ds-date-picker";
|
|
6
5
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
let { className:
|
|
10
|
-
return /* @__PURE__ */ r
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
...m,
|
|
6
|
+
var r = `ds-date-picker${e}`;
|
|
7
|
+
function i(e) {
|
|
8
|
+
let { className: i, children: a, onChange: o, inputId: s, value: c, defaultValue: l, max: u = "9999-12-31", label: d, required: f, disabled: p, readOnly: m, ...h } = e, g = c === void 0 ? { defaultValue: l } : { value: c };
|
|
9
|
+
return /* @__PURE__ */ n(r, {
|
|
10
|
+
class: i,
|
|
11
|
+
...h,
|
|
14
12
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
htmlFor:
|
|
17
|
-
children:
|
|
13
|
+
/* @__PURE__ */ t("label", {
|
|
14
|
+
htmlFor: s,
|
|
15
|
+
children: d
|
|
18
16
|
}),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
id:
|
|
17
|
+
/* @__PURE__ */ t("input", {
|
|
18
|
+
id: s,
|
|
21
19
|
type: "date",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
...g,
|
|
21
|
+
max: u,
|
|
22
|
+
onChange: o,
|
|
23
|
+
required: f,
|
|
24
|
+
disabled: p,
|
|
25
|
+
readOnly: m
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
a
|
|
28
28
|
]
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
export {
|
|
32
|
+
export { i as DatePicker };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-react",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.236",
|
|
4
4
|
"description": "React components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
53
|
+
"@cupra/ui-kit": "2.0.0-canary.221",
|
|
54
54
|
"react": ">= 18.3.1 < 20",
|
|
55
55
|
"react-dom": ">= 18.3.1 < 20",
|
|
56
56
|
"typescript": ">=5.0.0"
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"storybook": "^10.6.0",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
76
|
"vite": "^8.2.2",
|
|
77
|
-
"@cupra/ui-kit": "2.0.0-canary.
|
|
77
|
+
"@cupra/ui-kit": "2.0.0-canary.221"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "rm -rf dist && pnpm --filter @cupra/ui-kit build:react && tsc --declaration --emitDeclarationOnly && BUILD_FORMAT=esm vite build --emptyOutDir false && BUILD_FORMAT=cjs vite build --emptyOutDir false",
|