@nice2dev/ui 1.0.17 → 1.0.18
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/CHANGELOG.md +252 -0
- package/dist/NiceAlertDialog.doc-BST0-aVs.cjs +14 -0
- package/dist/NiceAlertDialog.doc-GRpJU_5Y.js +38 -0
- package/dist/NiceAnimatePresence.doc-BrttRpeS.js +36 -0
- package/dist/NiceAnimatePresence.doc-IdEWrSnT.cjs +12 -0
- package/dist/NiceCalendarScheduler.doc-Cc-DFMhR.js +33 -0
- package/dist/NiceCalendarScheduler.doc-TPe0kRBN.cjs +9 -0
- package/dist/NiceCameraFeed.doc-BJl0gdWv.js +31 -0
- package/dist/NiceCameraFeed.doc-Bt4eZ8MH.cjs +7 -0
- package/dist/NiceChip.doc-Bccf4IQe.cjs +7 -0
- package/dist/NiceChip.doc-DEsqjL7z.js +31 -0
- package/dist/NiceCombobox.doc-8hMzrsdM.js +34 -0
- package/dist/NiceCombobox.doc-C5IPnVuz.cjs +10 -0
- package/dist/NiceConfigProvider.doc-CKIudO44.js +32 -0
- package/dist/NiceConfigProvider.doc-bMLQj3Zx.cjs +8 -0
- package/dist/NiceCronEditor.doc-BThdELxx.js +31 -0
- package/dist/NiceCronEditor.doc-w_TbOWFo.cjs +7 -0
- package/dist/NiceDataList.doc-DHXrpTPT.cjs +9 -0
- package/dist/NiceDataList.doc-R8SchHqZ.js +33 -0
- package/dist/NiceDiagram.doc-CASS0Tnj.cjs +8 -0
- package/dist/NiceDiagram.doc-DGX-Hwhg.js +32 -0
- package/dist/NiceDocPage.doc-BVBe27kj.cjs +1 -0
- package/dist/NiceDocPage.doc-CDcL3Sqt.js +25 -0
- package/dist/NiceDrawingCanvas.doc-DYYFKKMW.js +32 -0
- package/dist/NiceDrawingCanvas.doc-wa684gbC.cjs +8 -0
- package/dist/NiceDropdown.doc-D2NS9hBT.js +35 -0
- package/dist/NiceDropdown.doc-dAgER8da.cjs +11 -0
- package/dist/NiceDropzone.doc-CVVNc9SE.cjs +9 -0
- package/dist/NiceDropzone.doc-aeajYWqU.js +33 -0
- package/dist/NiceEnergyMonitor.doc-BBnVKuwf.js +32 -0
- package/dist/NiceEnergyMonitor.doc-lf6CCIYi.cjs +8 -0
- package/dist/NiceErrorBoundary-COY0cEsF.js +762 -0
- package/dist/NiceErrorBoundary-CR-_ZScD.cjs +1 -0
- package/dist/NiceExpressionBuilder.doc-CTjqEcZR.cjs +8 -0
- package/dist/NiceExpressionBuilder.doc-Cu_ORFhd.js +32 -0
- package/dist/NiceFileExplorer.doc-B0aN041v.js +32 -0
- package/dist/NiceFileExplorer.doc-DNHYQF_t.cjs +8 -0
- package/dist/NiceFloatingActionButton.doc-BOlJwq4S.cjs +7 -0
- package/dist/NiceFloatingActionButton.doc-oYnwvMP9.js +31 -0
- package/dist/NiceFontPicker.doc-B10vOqeF.cjs +8 -0
- package/dist/NiceFontPicker.doc-DuPp0cDP.js +32 -0
- package/dist/NiceForm-COk1rNVa.js +5357 -0
- package/dist/NiceForm-CU8Dldq-.cjs +382 -0
- package/dist/NiceGestureHandler.doc-9GGvVnM5.cjs +8 -0
- package/dist/NiceGestureHandler.doc-BduQU3SA.js +32 -0
- package/dist/NiceHeader.doc-Cxoy_f_k.cjs +6 -0
- package/dist/NiceHeader.doc-DjAVl-T4.js +30 -0
- package/dist/NiceImage.doc-COy4iVy1.js +34 -0
- package/dist/NiceImage.doc-CvnaTRj8.cjs +10 -0
- package/dist/NiceInPlaceEditor.doc-8nC6Kqvn.cjs +1 -0
- package/dist/NiceInPlaceEditor.doc-gF1XPyu5.js +25 -0
- package/dist/NiceInteractiveTimeline.doc-BTeASFR4.js +50 -0
- package/dist/NiceInteractiveTimeline.doc-WMOVQhMe.cjs +11 -0
- package/dist/NiceJsonEditor.doc-BpVa-AlY.js +31 -0
- package/dist/NiceJsonEditor.doc-DeyoVDQw.cjs +7 -0
- package/dist/NiceMegaMenu.doc-CO34gN43.cjs +7 -0
- package/dist/NiceMegaMenu.doc-DpchTBL6.js +31 -0
- package/dist/NiceMentionInput.doc-O0W58Unu.js +32 -0
- package/dist/NiceMentionInput.doc-ZSPjBsZc.cjs +8 -0
- package/dist/NiceModal-CIITx65V.cjs +1 -0
- package/dist/NiceModal-CN23FZsc.js +95 -0
- package/dist/NiceModuleLifecyclePanel-BDnsr5ZW.js +6349 -0
- package/dist/NiceModuleLifecyclePanel-F1uN0gMh.cjs +1 -0
- package/dist/NiceMotion.doc-COF5BldG.cjs +9 -0
- package/dist/NiceMotion.doc-utheTBgM.js +33 -0
- package/dist/NiceMultiColumnComboBox.doc-Ben0Q0J0.cjs +1 -0
- package/dist/NiceMultiColumnComboBox.doc-CK1DppZI.js +25 -0
- package/dist/NiceNotificationList.doc-CBWusjJX.cjs +7 -0
- package/dist/NiceNotificationList.doc-D7lQIxK0.js +31 -0
- package/dist/NiceOfflineSync.doc-BLQFyOf2.cjs +8 -0
- package/dist/NiceOfflineSync.doc-CKWFmR3b.js +32 -0
- package/dist/NicePagination-B4U0LwZy.js +171 -0
- package/dist/NicePagination-CGQf54a9.cjs +1 -0
- package/dist/NicePinCodeInput-DG_-eXXJ.cjs +419 -0
- package/dist/NicePinCodeInput-g-yUiepm.js +11875 -0
- package/dist/NicePreview.doc-Cl7_5MVR.js +30 -0
- package/dist/NicePreview.doc-atKISvmp.cjs +6 -0
- package/dist/NicePropertyGrid.doc-D6xljYe1.cjs +7 -0
- package/dist/NicePropertyGrid.doc-nX2etusg.js +31 -0
- package/dist/NiceRadio.doc-BTURz62X.js +27 -0
- package/dist/NiceRadio.doc-Cc8-1vbn.cjs +3 -0
- package/dist/NiceRecurrencePicker.doc-78HjPJm0.js +31 -0
- package/dist/NiceRecurrencePicker.doc-vC2YmCXF.cjs +7 -0
- package/dist/NiceRichTextEditor.doc-ClPCkzCd.cjs +6 -0
- package/dist/NiceRichTextEditor.doc-CtmV9UvX.js +30 -0
- package/dist/NiceSavedQueryPanel-CE3QR4RY.js +6446 -0
- package/dist/NiceSavedQueryPanel-DSnj-3Es.cjs +596 -0
- package/dist/NiceSceneSelector.doc-CY2OmaWQ.cjs +7 -0
- package/dist/NiceSceneSelector.doc-UsVgDrw1.js +31 -0
- package/dist/NiceScrollArea.doc-C6Y-odUa.js +27 -0
- package/dist/NiceScrollArea.doc-LdxDrGDY.cjs +3 -0
- package/dist/NiceSheet.doc-CsIu3Y1G.cjs +11 -0
- package/dist/NiceSheet.doc-DLfSY-MA.js +35 -0
- package/dist/NiceSpeedDial.doc-CSWvNR9n.cjs +7 -0
- package/dist/NiceSpeedDial.doc-DqnpBcMy.js +31 -0
- package/dist/NiceSplitPane.doc-Ck_FvdL6.cjs +9 -0
- package/dist/NiceSplitPane.doc-Di68JZuy.js +33 -0
- package/dist/NiceSpotlight.doc-CM4PnsHE.js +34 -0
- package/dist/NiceSpotlight.doc-Dm_B-kUJ.cjs +10 -0
- package/dist/NiceStepNavigation.doc-DXraCs7t.js +31 -0
- package/dist/NiceStepNavigation.doc-TSy2dWmf.cjs +7 -0
- package/dist/NiceSteps.doc-C_mkhnez.cjs +10 -0
- package/dist/NiceSteps.doc-PW1zubHM.js +34 -0
- package/dist/NiceSwitch.doc-CLc7OxrE.cjs +6 -0
- package/dist/NiceSwitch.doc-dGMMY4es.js +30 -0
- package/dist/NiceTabs-32xjguOv.cjs +1 -0
- package/dist/NiceTabs-Blk0h4jY.js +1624 -0
- package/dist/NiceTransition.doc-BmImVoB8.js +35 -0
- package/dist/NiceTransition.doc-GA1N91ON.cjs +11 -0
- package/dist/NiceTree.doc-D7SCXljC.js +40 -0
- package/dist/NiceTree.doc-DZx3hUwY.cjs +16 -0
- package/dist/NiceUnitConverter.doc-DmiyYOH_.cjs +10 -0
- package/dist/NiceUnitConverter.doc-YnzD3uKT.js +34 -0
- package/dist/NiceVirtualGrid.doc-DI2c9ckY.js +35 -0
- package/dist/NiceVirtualGrid.doc-rtwudxTG.cjs +11 -0
- package/dist/NiceVirtualList.doc-BpoTiXoV.js +31 -0
- package/dist/NiceVirtualList.doc-C8q-Hfl0.cjs +7 -0
- package/dist/NiceWindow-B4jA_-hi.js +1409 -0
- package/dist/NiceWindow-UpKllge7.cjs +1 -0
- package/dist/charts-0BEMJ0Xt.js +4657 -0
- package/dist/charts-CbxmU6Z2.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.d.ts +19 -19
- package/dist/charts.mjs +1 -1
- package/dist/core-BIA5_uSq.js +22316 -0
- package/dist/core-DQYnL6uf.cjs +96 -0
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +10 -10
- package/dist/feedback.mjs +2 -2
- package/dist/index-BjBsn6ad.cjs +5194 -0
- package/dist/index-C2Uoywo9.js +63852 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1631 -53
- package/dist/index.mjs +943 -895
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +4 -3
- package/dist/lazy.mjs +3 -3
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.mjs +4 -4
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDataList",i="Definition list for key-value data display.",a="display",s="1.0.0",n="planned",o=[{name:"items",type:"DataListItem[]",required:!0,description:"Data items"},{name:"layout",type:"'horizontal' | 'vertical' | 'inline'",default:"'horizontal'",description:"Layout direction"},{name:"labelWidth",type:"number | string",description:"Label column width"},{name:"divider",type:"boolean",default:"false",description:"Show dividers"},{name:"striped",type:"boolean",default:"false",description:"Striped background"},{name:"size",type:"'sm' | 'md' | 'lg'",default:"'md'",description:"Size variant"}],l=[{title:"Data List",description:"Key-value display",code:`<NiceDataList
|
|
2
|
+
items={[
|
|
3
|
+
{ label: 'Name', value: 'John Doe' },
|
|
4
|
+
{ label: 'Email', value: 'john@example.com' },
|
|
5
|
+
{ label: 'Phone', value: '+1 234 567 890' }
|
|
6
|
+
]}
|
|
7
|
+
layout="horizontal"
|
|
8
|
+
divider
|
|
9
|
+
/>`}],c={keyboard:[],aria:["Definition list structure"]},d=["NicePropertyGrid","NiceTable"],r={$schema:e,name:t,description:i,category:a,since:s,status:n,props:o,examples:l,accessibility:c,seeAlso:d};exports.$schema=e;exports.accessibility=c;exports.category=a;exports.default=r;exports.description=i;exports.examples=l;exports.name=t;exports.props=o;exports.seeAlso=d;exports.since=s;exports.status=n;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceDataList", i = "Definition list for key-value data display.", a = "display", n = "1.0.0", o = "planned", s = [{ name: "items", type: "DataListItem[]", required: !0, description: "Data items" }, { name: "layout", type: "'horizontal' | 'vertical' | 'inline'", default: "'horizontal'", description: "Layout direction" }, { name: "labelWidth", type: "number | string", description: "Label column width" }, { name: "divider", type: "boolean", default: "false", description: "Show dividers" }, { name: "striped", type: "boolean", default: "false", description: "Striped background" }, { name: "size", type: "'sm' | 'md' | 'lg'", default: "'md'", description: "Size variant" }], l = [{ title: "Data List", description: "Key-value display", code: `<NiceDataList
|
|
2
|
+
items={[
|
|
3
|
+
{ label: 'Name', value: 'John Doe' },
|
|
4
|
+
{ label: 'Email', value: 'john@example.com' },
|
|
5
|
+
{ label: 'Phone', value: '+1 234 567 890' }
|
|
6
|
+
]}
|
|
7
|
+
layout="horizontal"
|
|
8
|
+
divider
|
|
9
|
+
/>` }], c = { keyboard: [], aria: ["Definition list structure"] }, d = ["NicePropertyGrid", "NiceTable"], r = {
|
|
10
|
+
$schema: e,
|
|
11
|
+
name: t,
|
|
12
|
+
description: i,
|
|
13
|
+
category: a,
|
|
14
|
+
since: n,
|
|
15
|
+
status: o,
|
|
16
|
+
props: s,
|
|
17
|
+
examples: l,
|
|
18
|
+
accessibility: c,
|
|
19
|
+
seeAlso: d
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
e as $schema,
|
|
23
|
+
c as accessibility,
|
|
24
|
+
a as category,
|
|
25
|
+
r as default,
|
|
26
|
+
i as description,
|
|
27
|
+
l as examples,
|
|
28
|
+
t as name,
|
|
29
|
+
s as props,
|
|
30
|
+
d as seeAlso,
|
|
31
|
+
n as since,
|
|
32
|
+
o as status
|
|
33
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",a="NiceDiagram",i="Diagram renderer for flowcharts, network diagrams, and graphs.",o="planning",n="1.0.0",t="planned",r=[{name:"nodes",type:"DiagramNode[]",required:!0,description:"Diagram nodes"},{name:"edges",type:"DiagramEdge[]",required:!0,description:"Diagram edges"},{name:"onChange",type:"(nodes: DiagramNode[], edges: DiagramEdge[]) => void",description:"Change callback"},{name:"layout",type:"'auto' | 'manual' | 'hierarchical' | 'circular'",default:"'auto'",description:"Layout algorithm"},{name:"interactive",type:"boolean",default:"true",description:"Allow interactions"},{name:"showMinimap",type:"boolean",default:"false",description:"Show minimap"},{name:"fitView",type:"boolean",default:"true",description:"Fit diagram to view"},{name:"onNodeClick",type:"(node: DiagramNode) => void",description:"Node click callback"}],s=[{title:"Diagram",description:"Render diagram",code:`<NiceDiagram
|
|
2
|
+
nodes={diagramNodes}
|
|
3
|
+
edges={diagramEdges}
|
|
4
|
+
onChange={updateDiagram}
|
|
5
|
+
layout="hierarchical"
|
|
6
|
+
interactive
|
|
7
|
+
showMinimap
|
|
8
|
+
/>`}],c={keyboard:["Tab through nodes","Arrow keys to pan"],aria:["Diagram region","Node descriptions"]},d=["NiceDiagramDesigner","NiceFlowChart"],m={$schema:e,name:a,description:i,category:o,since:n,status:t,props:r,examples:s,accessibility:c,seeAlso:d};exports.$schema=e;exports.accessibility=c;exports.category=o;exports.default=m;exports.description=i;exports.examples=s;exports.name=a;exports.props=r;exports.seeAlso=d;exports.since=n;exports.status=t;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", a = "NiceDiagram", i = "Diagram renderer for flowcharts, network diagrams, and graphs.", n = "planning", o = "1.0.0", t = "planned", r = [{ name: "nodes", type: "DiagramNode[]", required: !0, description: "Diagram nodes" }, { name: "edges", type: "DiagramEdge[]", required: !0, description: "Diagram edges" }, { name: "onChange", type: "(nodes: DiagramNode[], edges: DiagramEdge[]) => void", description: "Change callback" }, { name: "layout", type: "'auto' | 'manual' | 'hierarchical' | 'circular'", default: "'auto'", description: "Layout algorithm" }, { name: "interactive", type: "boolean", default: "true", description: "Allow interactions" }, { name: "showMinimap", type: "boolean", default: "false", description: "Show minimap" }, { name: "fitView", type: "boolean", default: "true", description: "Fit diagram to view" }, { name: "onNodeClick", type: "(node: DiagramNode) => void", description: "Node click callback" }], s = [{ title: "Diagram", description: "Render diagram", code: `<NiceDiagram
|
|
2
|
+
nodes={diagramNodes}
|
|
3
|
+
edges={diagramEdges}
|
|
4
|
+
onChange={updateDiagram}
|
|
5
|
+
layout="hierarchical"
|
|
6
|
+
interactive
|
|
7
|
+
showMinimap
|
|
8
|
+
/>` }], c = { keyboard: ["Tab through nodes", "Arrow keys to pan"], aria: ["Diagram region", "Node descriptions"] }, d = ["NiceDiagramDesigner", "NiceFlowChart"], m = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: a,
|
|
11
|
+
description: i,
|
|
12
|
+
category: n,
|
|
13
|
+
since: o,
|
|
14
|
+
status: t,
|
|
15
|
+
props: r,
|
|
16
|
+
examples: s,
|
|
17
|
+
accessibility: c,
|
|
18
|
+
seeAlso: d
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
c as accessibility,
|
|
23
|
+
n as category,
|
|
24
|
+
m as default,
|
|
25
|
+
i as description,
|
|
26
|
+
s as examples,
|
|
27
|
+
a as name,
|
|
28
|
+
r as props,
|
|
29
|
+
d as seeAlso,
|
|
30
|
+
o as since,
|
|
31
|
+
t as status
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDocPage",c="Documentation page layout.",o="layout",n="1.0.0",a="planned",i=[{name:"children",type:"React.ReactNode",required:!0,description:"Page content"},{name:"title",type:"string",description:"Page title"},{name:"toc",type:"TOCItem[]",description:"Table of contents"},{name:"sidebar",type:"React.ReactNode",description:"Sidebar content"}],s=[{title:"Doc Page",code:'<NiceDocPage title="Getting Started" toc={tocItems}>{content}</NiceDocPage>'}],r={keyboard:["Tab navigation"],aria:["Article role"]},d=["NiceDocumentationViewer","NiceLayout"],l={$schema:e,name:t,description:c,category:o,since:n,status:a,props:i,examples:s,accessibility:r,seeAlso:d};exports.$schema=e;exports.accessibility=r;exports.category=o;exports.default=l;exports.description=c;exports.examples=s;exports.name=t;exports.props=i;exports.seeAlso=d;exports.since=n;exports.status=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceDocPage", c = "Documentation page layout.", o = "layout", n = "1.0.0", a = "planned", i = [{ name: "children", type: "React.ReactNode", required: !0, description: "Page content" }, { name: "title", type: "string", description: "Page title" }, { name: "toc", type: "TOCItem[]", description: "Table of contents" }, { name: "sidebar", type: "React.ReactNode", description: "Sidebar content" }], s = [{ title: "Doc Page", code: '<NiceDocPage title="Getting Started" toc={tocItems}>{content}</NiceDocPage>' }], r = { keyboard: ["Tab navigation"], aria: ["Article role"] }, d = ["NiceDocumentationViewer", "NiceLayout"], p = {
|
|
2
|
+
$schema: e,
|
|
3
|
+
name: t,
|
|
4
|
+
description: c,
|
|
5
|
+
category: o,
|
|
6
|
+
since: n,
|
|
7
|
+
status: a,
|
|
8
|
+
props: i,
|
|
9
|
+
examples: s,
|
|
10
|
+
accessibility: r,
|
|
11
|
+
seeAlso: d
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as $schema,
|
|
15
|
+
r as accessibility,
|
|
16
|
+
o as category,
|
|
17
|
+
p as default,
|
|
18
|
+
c as description,
|
|
19
|
+
s as examples,
|
|
20
|
+
t as name,
|
|
21
|
+
i as props,
|
|
22
|
+
d as seeAlso,
|
|
23
|
+
n as since,
|
|
24
|
+
a as status
|
|
25
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceDrawingCanvas", t = "Freeform drawing canvas with brush tools.", a = "editors", o = "1.0.0", s = "planned", i = [{ name: "value", type: "string", description: "Canvas data URL" }, { name: "onChange", type: "(dataUrl: string) => void", required: !0, description: "Change callback" }, { name: "width", type: "number | string", default: "'100%'", description: "Canvas width" }, { name: "height", type: "number | string", default: "400", description: "Canvas height" }, { name: "tools", type: "DrawingTool[]", description: "Available tools" }, { name: "colors", type: "string[]", description: "Color palette" }, { name: "brushSizes", type: "number[]", description: "Brush sizes" }, { name: "showToolbar", type: "boolean", default: "true", description: "Show toolbar" }, { name: "undoSteps", type: "number", default: "50", description: "Max undo steps" }, { name: "disabled", type: "boolean", default: "false", description: "Disabled state" }], r = [{ title: "Drawing Canvas", description: "Draw freeform", code: `<NiceDrawingCanvas
|
|
2
|
+
value={drawing}
|
|
3
|
+
onChange={setDrawing}
|
|
4
|
+
width={800}
|
|
5
|
+
height={600}
|
|
6
|
+
tools={['brush', 'eraser', 'line', 'rectangle']}
|
|
7
|
+
showToolbar
|
|
8
|
+
/>` }], c = { keyboard: ["Tab through tools", "Shortcuts for tools"], aria: ["Drawing canvas", "Tool descriptions"] }, d = ["NiceSignaturePad", "NiceImageEditor"], l = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: n,
|
|
11
|
+
description: t,
|
|
12
|
+
category: a,
|
|
13
|
+
since: o,
|
|
14
|
+
status: s,
|
|
15
|
+
props: i,
|
|
16
|
+
examples: r,
|
|
17
|
+
accessibility: c,
|
|
18
|
+
seeAlso: d
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
c as accessibility,
|
|
23
|
+
a as category,
|
|
24
|
+
l as default,
|
|
25
|
+
t as description,
|
|
26
|
+
r as examples,
|
|
27
|
+
n as name,
|
|
28
|
+
i as props,
|
|
29
|
+
d as seeAlso,
|
|
30
|
+
o as since,
|
|
31
|
+
s as status
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDrawingCanvas",a="Freeform drawing canvas with brush tools.",n="editors",s="1.0.0",o="planned",i=[{name:"value",type:"string",description:"Canvas data URL"},{name:"onChange",type:"(dataUrl: string) => void",required:!0,description:"Change callback"},{name:"width",type:"number | string",default:"'100%'",description:"Canvas width"},{name:"height",type:"number | string",default:"400",description:"Canvas height"},{name:"tools",type:"DrawingTool[]",description:"Available tools"},{name:"colors",type:"string[]",description:"Color palette"},{name:"brushSizes",type:"number[]",description:"Brush sizes"},{name:"showToolbar",type:"boolean",default:"true",description:"Show toolbar"},{name:"undoSteps",type:"number",default:"50",description:"Max undo steps"},{name:"disabled",type:"boolean",default:"false",description:"Disabled state"}],r=[{title:"Drawing Canvas",description:"Draw freeform",code:`<NiceDrawingCanvas
|
|
2
|
+
value={drawing}
|
|
3
|
+
onChange={setDrawing}
|
|
4
|
+
width={800}
|
|
5
|
+
height={600}
|
|
6
|
+
tools={['brush', 'eraser', 'line', 'rectangle']}
|
|
7
|
+
showToolbar
|
|
8
|
+
/>`}],c={keyboard:["Tab through tools","Shortcuts for tools"],aria:["Drawing canvas","Tool descriptions"]},d=["NiceSignaturePad","NiceImageEditor"],l={$schema:e,name:t,description:a,category:n,since:s,status:o,props:i,examples:r,accessibility:c,seeAlso:d};exports.$schema=e;exports.accessibility=c;exports.category=n;exports.default=l;exports.description=a;exports.examples=r;exports.name=t;exports.props=i;exports.seeAlso=d;exports.since=s;exports.status=o;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceDropdown", t = "Dropdown menu for actions and navigation.", o = "overlays", c = "1.0.0", i = "planned", a = [{ name: "items", type: "DropdownItem[]", required: !0, description: "Menu items" }, { name: "children", type: "React.ReactElement", required: !0, description: "Trigger element" }, { name: "placement", type: "Placement", default: "'bottom-start'", description: "Menu placement" }, { name: "closeOnSelect", type: "boolean", default: "true", description: "Close on item select" }, { name: "disabled", type: "boolean", default: "false", description: "Disabled state" }, { name: "onSelect", type: "(key: string) => void", description: "Selection callback" }, { name: "maxHeight", type: "number | string", description: "Max menu height" }, { name: "searchable", type: "boolean", default: "false", description: "Enable search" }], s = [{ title: "Dropdown", description: "Dropdown menu", code: `<NiceDropdown
|
|
2
|
+
items={[
|
|
3
|
+
{ key: 'edit', label: 'Edit', icon: <EditIcon /> },
|
|
4
|
+
{ key: 'duplicate', label: 'Duplicate', icon: <CopyIcon /> },
|
|
5
|
+
{ divider: true },
|
|
6
|
+
{ key: 'delete', label: 'Delete', icon: <DeleteIcon />, danger: true }
|
|
7
|
+
]}
|
|
8
|
+
onSelect={handleAction}
|
|
9
|
+
>
|
|
10
|
+
<NiceButton>Actions</NiceButton>
|
|
11
|
+
</NiceDropdown>` }], r = { keyboard: ["Space/Enter to open", "Arrow keys to navigate"], aria: ["Menu role", "Menuitem roles"] }, l = ["NicePopover", "NiceContextMenu"], d = {
|
|
12
|
+
$schema: e,
|
|
13
|
+
name: n,
|
|
14
|
+
description: t,
|
|
15
|
+
category: o,
|
|
16
|
+
since: c,
|
|
17
|
+
status: i,
|
|
18
|
+
props: a,
|
|
19
|
+
examples: s,
|
|
20
|
+
accessibility: r,
|
|
21
|
+
seeAlso: l
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
e as $schema,
|
|
25
|
+
r as accessibility,
|
|
26
|
+
o as category,
|
|
27
|
+
d as default,
|
|
28
|
+
t as description,
|
|
29
|
+
s as examples,
|
|
30
|
+
n as name,
|
|
31
|
+
a as props,
|
|
32
|
+
l as seeAlso,
|
|
33
|
+
c as since,
|
|
34
|
+
i as status
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDropdown",n="Dropdown menu for actions and navigation.",o="overlays",c="1.0.0",i="planned",a=[{name:"items",type:"DropdownItem[]",required:!0,description:"Menu items"},{name:"children",type:"React.ReactElement",required:!0,description:"Trigger element"},{name:"placement",type:"Placement",default:"'bottom-start'",description:"Menu placement"},{name:"closeOnSelect",type:"boolean",default:"true",description:"Close on item select"},{name:"disabled",type:"boolean",default:"false",description:"Disabled state"},{name:"onSelect",type:"(key: string) => void",description:"Selection callback"},{name:"maxHeight",type:"number | string",description:"Max menu height"},{name:"searchable",type:"boolean",default:"false",description:"Enable search"}],s=[{title:"Dropdown",description:"Dropdown menu",code:`<NiceDropdown
|
|
2
|
+
items={[
|
|
3
|
+
{ key: 'edit', label: 'Edit', icon: <EditIcon /> },
|
|
4
|
+
{ key: 'duplicate', label: 'Duplicate', icon: <CopyIcon /> },
|
|
5
|
+
{ divider: true },
|
|
6
|
+
{ key: 'delete', label: 'Delete', icon: <DeleteIcon />, danger: true }
|
|
7
|
+
]}
|
|
8
|
+
onSelect={handleAction}
|
|
9
|
+
>
|
|
10
|
+
<NiceButton>Actions</NiceButton>
|
|
11
|
+
</NiceDropdown>`}],r={keyboard:["Space/Enter to open","Arrow keys to navigate"],aria:["Menu role","Menuitem roles"]},l=["NicePopover","NiceContextMenu"],d={$schema:e,name:t,description:n,category:o,since:c,status:i,props:a,examples:s,accessibility:r,seeAlso:l};exports.$schema=e;exports.accessibility=r;exports.category=o;exports.default=d;exports.description=n;exports.examples=s;exports.name=t;exports.props=a;exports.seeAlso=l;exports.since=c;exports.status=i;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceDropzone",t="Drag and drop file upload zone.",i="input",n="1.0.0",a="planned",s=[{name:"accept",type:"string | string[]",description:"Accepted MIME types"},{name:"multiple",type:"boolean",default:"true",description:"Multiple files"},{name:"maxFiles",type:"number",description:"Maximum files"},{name:"maxSize",type:"number",description:"Max size per file"},{name:"disabled",type:"boolean",default:"false",description:"Disabled state"},{name:"noClick",type:"boolean",default:"false",description:"Disable click to upload"},{name:"noDrag",type:"boolean",default:"false",description:"Disable drag"},{name:"children",type:"React.ReactNode | ((state: DropzoneState) => React.ReactNode)",description:"Content or render prop"},{name:"onDrop",type:"(acceptedFiles: File[], rejectedFiles: FileRejection[]) => void",description:"Drop callback"}],c=[{title:"Dropzone",description:"Drag and drop zone",code:`<NiceDropzone
|
|
2
|
+
accept={{ 'image/*': ['.png', '.jpg', '.gif'] }}
|
|
3
|
+
maxFiles={10}
|
|
4
|
+
onDrop={(files) => console.log('Dropped:', files)}
|
|
5
|
+
>
|
|
6
|
+
{({ isDragActive }) => (
|
|
7
|
+
<div>{isDragActive ? 'Drop files here' : 'Drag & drop files'}</div>
|
|
8
|
+
)}
|
|
9
|
+
</NiceDropzone>`}],p={keyboard:["Tab to focus","Enter/Space to open"],aria:["File dropzone","Drag active state"]},r=["NiceUpload","NiceFilePicker"],l={$schema:e,name:o,description:t,category:i,since:n,status:a,props:s,examples:c,accessibility:p,seeAlso:r};exports.$schema=e;exports.accessibility=p;exports.category=i;exports.default=l;exports.description=t;exports.examples=c;exports.name=o;exports.props=s;exports.seeAlso=r;exports.since=n;exports.status=a;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", o = "NiceDropzone", n = "Drag and drop file upload zone.", t = "input", i = "1.0.0", a = "planned", c = [{ name: "accept", type: "string | string[]", description: "Accepted MIME types" }, { name: "multiple", type: "boolean", default: "true", description: "Multiple files" }, { name: "maxFiles", type: "number", description: "Maximum files" }, { name: "maxSize", type: "number", description: "Max size per file" }, { name: "disabled", type: "boolean", default: "false", description: "Disabled state" }, { name: "noClick", type: "boolean", default: "false", description: "Disable click to upload" }, { name: "noDrag", type: "boolean", default: "false", description: "Disable drag" }, { name: "children", type: "React.ReactNode | ((state: DropzoneState) => React.ReactNode)", description: "Content or render prop" }, { name: "onDrop", type: "(acceptedFiles: File[], rejectedFiles: FileRejection[]) => void", description: "Drop callback" }], s = [{ title: "Dropzone", description: "Drag and drop zone", code: `<NiceDropzone
|
|
2
|
+
accept={{ 'image/*': ['.png', '.jpg', '.gif'] }}
|
|
3
|
+
maxFiles={10}
|
|
4
|
+
onDrop={(files) => console.log('Dropped:', files)}
|
|
5
|
+
>
|
|
6
|
+
{({ isDragActive }) => (
|
|
7
|
+
<div>{isDragActive ? 'Drop files here' : 'Drag & drop files'}</div>
|
|
8
|
+
)}
|
|
9
|
+
</NiceDropzone>` }], p = { keyboard: ["Tab to focus", "Enter/Space to open"], aria: ["File dropzone", "Drag active state"] }, r = ["NiceUpload", "NiceFilePicker"], l = {
|
|
10
|
+
$schema: e,
|
|
11
|
+
name: o,
|
|
12
|
+
description: n,
|
|
13
|
+
category: t,
|
|
14
|
+
since: i,
|
|
15
|
+
status: a,
|
|
16
|
+
props: c,
|
|
17
|
+
examples: s,
|
|
18
|
+
accessibility: p,
|
|
19
|
+
seeAlso: r
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
e as $schema,
|
|
23
|
+
p as accessibility,
|
|
24
|
+
t as category,
|
|
25
|
+
l as default,
|
|
26
|
+
n as description,
|
|
27
|
+
s as examples,
|
|
28
|
+
o as name,
|
|
29
|
+
c as props,
|
|
30
|
+
r as seeAlso,
|
|
31
|
+
i as since,
|
|
32
|
+
a as status
|
|
33
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceEnergyMonitor", o = "Energy consumption monitor with usage charts and cost tracking.", t = "smart-home", a = "1.0.0", s = "planned", r = [{ name: "data", type: "EnergyData[]", required: !0, description: "Energy consumption data" }, { name: "range", type: "'day' | 'week' | 'month' | 'year'", default: "'day'", description: "Data range" }, { name: "onRangeChange", type: "(range: string) => void", description: "Range change callback" }, { name: "showCost", type: "boolean", default: "true", description: "Show cost estimate" }, { name: "costPerKwh", type: "number", description: "Cost per kWh" }, { name: "showComparison", type: "boolean", default: "true", description: "Show period comparison" }, { name: "showDeviceBreakdown", type: "boolean", default: "true", description: "Show by device" }], c = [{ title: "Energy Monitor", description: "Track energy usage", code: `<NiceEnergyMonitor
|
|
2
|
+
data={energyData}
|
|
3
|
+
range="week"
|
|
4
|
+
onRangeChange={setRange}
|
|
5
|
+
showCost
|
|
6
|
+
costPerKwh={0.12}
|
|
7
|
+
showDeviceBreakdown
|
|
8
|
+
/>` }], i = { keyboard: ["Tab through controls"], aria: ["Chart descriptions", "Data summaries"] }, d = ["NiceSensorGaugePanel", "NiceLineChart"], p = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: n,
|
|
11
|
+
description: o,
|
|
12
|
+
category: t,
|
|
13
|
+
since: a,
|
|
14
|
+
status: s,
|
|
15
|
+
props: r,
|
|
16
|
+
examples: c,
|
|
17
|
+
accessibility: i,
|
|
18
|
+
seeAlso: d
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
i as accessibility,
|
|
23
|
+
t as category,
|
|
24
|
+
p as default,
|
|
25
|
+
o as description,
|
|
26
|
+
c as examples,
|
|
27
|
+
n as name,
|
|
28
|
+
r as props,
|
|
29
|
+
d as seeAlso,
|
|
30
|
+
a as since,
|
|
31
|
+
s as status
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceEnergyMonitor",o="Energy consumption monitor with usage charts and cost tracking.",t="smart-home",a="1.0.0",s="planned",r=[{name:"data",type:"EnergyData[]",required:!0,description:"Energy consumption data"},{name:"range",type:"'day' | 'week' | 'month' | 'year'",default:"'day'",description:"Data range"},{name:"onRangeChange",type:"(range: string) => void",description:"Range change callback"},{name:"showCost",type:"boolean",default:"true",description:"Show cost estimate"},{name:"costPerKwh",type:"number",description:"Cost per kWh"},{name:"showComparison",type:"boolean",default:"true",description:"Show period comparison"},{name:"showDeviceBreakdown",type:"boolean",default:"true",description:"Show by device"}],c=[{title:"Energy Monitor",description:"Track energy usage",code:`<NiceEnergyMonitor
|
|
2
|
+
data={energyData}
|
|
3
|
+
range="week"
|
|
4
|
+
onRangeChange={setRange}
|
|
5
|
+
showCost
|
|
6
|
+
costPerKwh={0.12}
|
|
7
|
+
showDeviceBreakdown
|
|
8
|
+
/>`}],i={keyboard:["Tab through controls"],aria:["Chart descriptions","Data summaries"]},d=["NiceSensorGaugePanel","NiceLineChart"],p={$schema:e,name:n,description:o,category:t,since:a,status:s,props:r,examples:c,accessibility:i,seeAlso:d};exports.$schema=e;exports.accessibility=i;exports.category=t;exports.default=p;exports.description=o;exports.examples=c;exports.name=n;exports.props=r;exports.seeAlso=d;exports.since=a;exports.status=s;
|