@nice2dev/ui 1.1.10 → 1.2.1
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 +183 -0
- package/README.md +12 -20
- package/dist/NiceApiExplorer.doc-CFJndg5h.js +25 -0
- package/dist/NiceApiExplorer.doc-TEx67kV5.cjs +1 -0
- package/dist/NiceBPMNDesigner.doc-6lK1pXRq.js +32 -0
- package/dist/NiceBPMNDesigner.doc-BY8t7qOi.cjs +8 -0
- package/dist/NiceBackupDiffViewer.doc-CYvOeX19.js +25 -0
- package/dist/NiceBackupDiffViewer.doc-ChQaZCg1.cjs +1 -0
- package/dist/NiceBackupList.doc-BdQCw0_D.cjs +1 -0
- package/dist/NiceBackupList.doc-BwjIAoqz.js +25 -0
- package/dist/NiceBackupRestoreDialog.doc-B2iiqTps.cjs +1 -0
- package/dist/NiceBackupRestoreDialog.doc-DuXSGJiD.js +25 -0
- package/dist/NiceBackupScheduler.doc-BpY45181.js +31 -0
- package/dist/NiceBackupScheduler.doc-ByeL3iH1.cjs +7 -0
- package/dist/NiceBackupStatusBadge.doc-BA3dYgiW.cjs +1 -0
- package/dist/NiceBackupStatusBadge.doc-CxwkVarP.js +25 -0
- package/dist/NiceBackupTagEditor.doc-Bej1KHco.cjs +7 -0
- package/dist/NiceBackupTagEditor.doc-CNy4uNws.js +31 -0
- package/dist/NiceBottomSheet.doc-keq-Fzlz.cjs +8 -0
- package/dist/NiceBottomSheet.doc-v-UPUKQk.js +32 -0
- package/dist/NiceBranchManager.doc-BTyRjX7X.cjs +6 -0
- package/dist/NiceBranchManager.doc-Cz4SyEqE.js +30 -0
- package/dist/NiceButton-3AcJJ15c.cjs +1 -0
- package/dist/NiceButton-5tWvfXKl.cjs +1 -0
- package/dist/NiceButton-DHSgQT1_.js +112 -0
- package/dist/NiceButton-vkI07DP0.js +88 -0
- package/dist/NiceCodeEditor-B8At55f5.js +1179 -0
- package/dist/NiceCodeEditor-BJSEzhcY.cjs +260 -0
- package/dist/NiceCodeEditor-VGIDWSkS.js +1181 -0
- package/dist/NiceCodeEditor-qX39PSnQ.cjs +260 -0
- package/dist/NiceColorPicker-CQhhjZ8w.cjs +1 -0
- package/dist/NiceColorPicker-Cbop7VMu.js +491 -0
- package/dist/NiceColorPicker-DCgmE-3H.cjs +1 -0
- package/dist/NiceColorPicker-DK30kJgy.js +486 -0
- package/dist/NiceColorPicker-DtPFxDKM.cjs +1 -0
- package/dist/NiceColorPicker-bNJBAU_c.js +598 -0
- package/dist/NiceConnectorConfigForm.doc-BKrDuhXw.cjs +7 -0
- package/dist/NiceConnectorConfigForm.doc-BsHeXz3M.js +31 -0
- package/dist/NiceDataBranchGraph.doc-Axidz41W.js +29 -0
- package/dist/NiceDataBranchGraph.doc-sjLmrrtE.cjs +5 -0
- package/dist/NiceDataBranchManager.doc-B1-Rp2X4.cjs +6 -0
- package/dist/NiceDataBranchManager.doc-GUqfTFvW.js +30 -0
- package/dist/NiceDataConflictResolver.doc-CjQryrTu.cjs +5 -0
- package/dist/NiceDataConflictResolver.doc-L-TcnQMX.js +29 -0
- package/dist/NiceDataDiffViewer.doc-BzGrf0U-.cjs +6 -0
- package/dist/NiceDataDiffViewer.doc-goxhSldH.js +30 -0
- package/dist/NiceDataGrid-BDEIbuBS.js +2218 -0
- package/dist/NiceDataGrid-BOCJr6XF.js +2217 -0
- package/dist/NiceDataGrid-BV5Oh-gy.cjs +10 -0
- package/dist/NiceDataGrid-CS5aB-EN.cjs +10 -0
- package/dist/NiceDataGrid-Dd7SI-M6.cjs +10 -0
- package/dist/NiceDataGrid-DjZchXYG.js +2217 -0
- package/dist/NiceDataMapper.doc-QmnmnvVq.js +30 -0
- package/dist/NiceDataMapper.doc-ytGVtYVr.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-BcmzKxh2.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-BvYa4aUJ.js +30 -0
- package/dist/NiceDataSnapshot.doc-C73K1biG.cjs +6 -0
- package/dist/NiceDataSnapshot.doc-hU7wnOzM.js +30 -0
- package/dist/NiceDesktopViews.doc-DJjYlyP2.cjs +1 -0
- package/dist/NiceDesktopViews.doc-ly-VUAJj.js +25 -0
- package/dist/NiceDeviceControlCard.doc-BZIo92-w.cjs +1 -0
- package/dist/NiceDeviceControlCard.doc-DIzZcW9L.js +25 -0
- package/dist/NiceDocumentViewer-B9VIVKyw.js +726 -0
- package/dist/NiceDocumentViewer-CDXAmPp7.cjs +180 -0
- package/dist/NiceDocumentationViewer.doc-BSNGa7a_.js +25 -0
- package/dist/NiceDocumentationViewer.doc-CrwlvPFg.cjs +1 -0
- package/dist/NiceEnergyChart.doc-DW-jllDV.cjs +1 -0
- package/dist/NiceEnergyChart.doc-DnEehTff.js +25 -0
- package/dist/NiceFeatureGate.doc-DN17uS_B.cjs +3 -0
- package/dist/NiceFeatureGate.doc-DNfFSRrh.js +27 -0
- package/dist/NiceForm-BCEXovJR.cjs +1 -0
- package/dist/NiceForm-BcN4p2kG.cjs +1 -0
- package/dist/NiceForm-D7oyWHXg.js +4820 -0
- package/dist/NiceForm-DUhxXArr.js +4817 -0
- package/dist/NiceForm-tIXS-M6b.js +4770 -0
- package/dist/NiceForm-uCeVmTrD.cjs +1 -0
- package/dist/NiceFormItem.doc-BJwEnDz2.js +36 -0
- package/dist/NiceFormItem.doc-Ck3PgaPD.cjs +12 -0
- package/dist/NiceGantt-CTbqCuwv.cjs +1 -0
- package/dist/NiceGantt-Dao7pN9z.js +328 -0
- package/dist/NiceGantt.doc-B6YZcJvG.cjs +11 -0
- package/dist/NiceGantt.doc-DsI1QXly.js +48 -0
- package/dist/NiceGitBlame.doc-BQ2KvGkD.js +30 -0
- package/dist/NiceGitBlame.doc-DuTSjZVN.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-D24AGos_.js +30 -0
- package/dist/NiceGitDiffViewer.doc-D9FVquBC.cjs +6 -0
- package/dist/NiceGitGraph.doc-C-8VGMIz.js +29 -0
- package/dist/NiceGitGraph.doc-eRvTmefl.cjs +5 -0
- package/dist/NiceGitHooks.doc-DCTVw7HX.cjs +5 -0
- package/dist/NiceGitHooks.doc-OCFj5w6v.js +29 -0
- package/dist/NiceHtmlEditor-BYk1roA4.cjs +10 -0
- package/dist/NiceHtmlEditor-C5kLeF9H.cjs +10 -0
- package/dist/NiceHtmlEditor-CFVMIC5L.js +848 -0
- package/dist/NiceHtmlEditor-DUwcqj5N.cjs +10 -0
- package/dist/NiceHtmlEditor-DiAphF1k.js +889 -0
- package/dist/NiceHtmlEditor-mWebBmy1.js +849 -0
- package/dist/NiceInstanceMonitor.doc-BSDZp5xa.js +31 -0
- package/dist/NiceInstanceMonitor.doc-HVbLufnh.cjs +7 -0
- package/dist/NiceLocaleManager.doc-CbVHDEWu.js +25 -0
- package/dist/NiceLocaleManager.doc-XH6hMW0Z.cjs +1 -0
- package/dist/NiceLockButton.doc-BMhSj3TB.cjs +1 -0
- package/dist/NiceLockButton.doc-DvHGhcfm.js +25 -0
- package/dist/NiceLoginForm-BHyDY7br.cjs +1 -0
- package/dist/NiceLoginForm-BuxFY2Rk.js +750 -0
- package/dist/NiceLoginForm-DQe77Isv.js +747 -0
- package/dist/NiceLoginForm-NBCo-DUZ.cjs +1 -0
- package/dist/NiceLoginForm.css +1 -0
- package/dist/NiceMAM.doc-CsQ57saR.cjs +8 -0
- package/dist/NiceMAM.doc-hjW7buTH.js +32 -0
- package/dist/NiceMention--3P3vO-W.cjs +430 -0
- package/dist/NiceMention-CA7CL5BI.js +11263 -0
- package/dist/NiceMention-CHcKRl-L.cjs +430 -0
- package/dist/NiceMention-Co2cqkVM.js +11316 -0
- package/dist/NiceMention-DJD0BLcp.js +11269 -0
- package/dist/NiceMention-DcaUEMSg.cjs +430 -0
- package/dist/NiceMention.css +1 -1
- package/dist/NiceModal-C4p8a82e.cjs +1 -0
- package/dist/NiceModal-TNlkaL_i.js +85 -0
- package/dist/NiceModuleLifecyclePanel-BWbKdVC_.js +7054 -0
- package/dist/NiceModuleLifecyclePanel-CZHIzvkE.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DV3F_QdI.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-OC9YK2kG.js +7052 -0
- package/dist/NiceModuleLifecyclePanel-_OcfDmtC.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-gaZkIEtK.js +6825 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NiceNetworkDiscoveryPanel.doc-B0RtGaS3.js +25 -0
- package/dist/NiceNetworkDiscoveryPanel.doc-BFgFZI5G.cjs +1 -0
- package/dist/NicePagination-8XsBbMNx.js +165 -0
- package/dist/NicePagination-B3nZDZem.js +165 -0
- package/dist/NicePagination-B8rg1Y67.cjs +1 -0
- package/dist/NicePagination-CkOoXf0f.js +165 -0
- package/dist/NicePagination-D7lek1G7.cjs +1 -0
- package/dist/NicePagination-OjTEfZJE.cjs +1 -0
- package/dist/NicePipelineEditor.doc-CjqDKe2x.js +29 -0
- package/dist/NicePipelineEditor.doc-DZ0pTVTp.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-C88-TagI.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-CFtH4XJx.js +29 -0
- package/dist/NicePivotGrid-BJRSciWl.js +1183 -0
- package/dist/NicePivotGrid-BaZa2YZW.js +1157 -0
- package/dist/NicePivotGrid-CS1dPmNI.cjs +152 -0
- package/dist/NicePivotGrid-D2AxqDzJ.js +1183 -0
- package/dist/NicePivotGrid-DxQ6Py9D.cjs +152 -0
- package/dist/NicePivotGrid-DyOPhPO8.cjs +152 -0
- package/dist/NiceRoomGrid.doc-DJPVUQVg.cjs +8 -0
- package/dist/NiceRoomGrid.doc-DLHJS_Wb.js +32 -0
- package/dist/NiceSavedQueryPanel-B5HhqlAI.cjs +586 -0
- package/dist/NiceSavedQueryPanel-BC84uRfh.cjs +586 -0
- package/dist/NiceSavedQueryPanel-CMStDOKe.js +5125 -0
- package/dist/NiceSavedQueryPanel-CMfcODIO.js +5120 -0
- package/dist/NiceSavedQueryPanel-D2i34e_b.cjs +586 -0
- package/dist/NiceSavedQueryPanel-mPO2THs7.js +5142 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceSceneBar.doc-09sc3yuF.cjs +1 -0
- package/dist/NiceSceneBar.doc-DLePMuVU.js +25 -0
- package/dist/NiceSceneSelector.doc-CPzCAy-d.cjs +7 -0
- package/dist/NiceSceneSelector.doc-FCLZvPc0.js +31 -0
- package/dist/NiceScheduler-7gP7vcLy.cjs +5 -0
- package/dist/NiceScheduler-BAJRzFQN.js +1690 -0
- package/dist/NiceScheduler-Cy7F9tgH.js +1693 -0
- package/dist/NiceScheduler-DquRUZxD.cjs +5 -0
- package/dist/NiceScheduler-dJ7gHDv7.cjs +5 -0
- package/dist/NiceScheduler-l8N4yCWd.js +1716 -0
- package/dist/NiceSchedulerViews.doc-C9opZpgg.cjs +1 -0
- package/dist/NiceSchedulerViews.doc-Dy7ZH1iL.js +25 -0
- package/dist/NiceSelect-CZR8Zu_k.js +420 -0
- package/dist/NiceSelect-DIKGbaJo.cjs +1 -0
- package/dist/NiceSelect-DZB1Rs9x.js +435 -0
- package/dist/NiceSelect-tMz9QQUs.cjs +1 -0
- package/dist/NiceSensorGaugePanel.doc-BHirbWLn.cjs +8 -0
- package/dist/NiceSensorGaugePanel.doc-DjKmooI6.js +32 -0
- package/dist/NiceSpotlight.doc-BVZFfDVI.cjs +10 -0
- package/dist/NiceSpotlight.doc-JqwkzrEm.js +34 -0
- package/dist/NiceStateDesigner.doc-CfnwiwfU.js +29 -0
- package/dist/NiceStateDesigner.doc-DV4zEC50.cjs +5 -0
- package/dist/NiceStepper.doc-5VjaLM6r.js +31 -0
- package/dist/NiceStepper.doc-f8lYpr33.cjs +7 -0
- package/dist/NiceStreamDashboard.doc-74KUXya1.cjs +8 -0
- package/dist/NiceStreamDashboard.doc-k8PQfCM0.js +32 -0
- package/dist/NiceTaskInbox.doc-CHrxthqp.js +32 -0
- package/dist/NiceTaskInbox.doc-CdCTfgBq.cjs +8 -0
- package/dist/NiceTestBuilder.doc-BoBzLfa0.js +30 -0
- package/dist/NiceTestBuilder.doc-Cj1fNTvk.cjs +6 -0
- package/dist/NiceTranscoder.doc-Dnirl3wg.cjs +7 -0
- package/dist/NiceTranscoder.doc-cInCYZh7.js +31 -0
- package/dist/NiceVideoAnnotator.doc-C1iEi7OM.cjs +7 -0
- package/dist/NiceVideoAnnotator.doc-C8zyfKH_.js +31 -0
- package/dist/NiceVideoEditor.doc-C6mhEb-q.cjs +7 -0
- package/dist/NiceVideoEditor.doc-lrwmKjqj.js +31 -0
- package/dist/NiceWindow-BEov3s9F.js +2094 -0
- package/dist/NiceWindow-CDt6PCEg.cjs +1 -0
- package/dist/NiceWindow-CWN8OCHF.js +2109 -0
- package/dist/NiceWindow-Dd8qjkIW.cjs +1 -0
- package/dist/NiceWindow.css +1 -1
- package/dist/charts-Bo2WAI5T.cjs +768 -0
- package/dist/charts-ByrdMeQP.js +4767 -0
- package/dist/charts-C047IMVn.cjs +768 -0
- package/dist/charts-CCXSb3xk.js +4752 -0
- package/dist/charts-CqETcUhH.js +4752 -0
- package/dist/charts-DouiiHOT.cjs +768 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -1
- package/dist/charts.d.ts +28 -18
- package/dist/charts.mjs +1 -1
- package/dist/core-B8eBUE4m.js +438 -0
- package/dist/core-BL-KmGYC.js +795 -0
- package/dist/core-Chg-oYCr.cjs +1 -0
- package/dist/core-CxBnKAhs.cjs +1 -0
- package/dist/core-D_LRh59n.js +795 -0
- package/dist/core-lBFqvT0V.cjs +1 -0
- package/dist/core-lazy-Bh2yg4Et.js +351 -0
- package/dist/core-lazy-CkWKjfc6.cjs +1 -0
- package/dist/data-branching-Dak1_ZKR.cjs +1 -0
- package/dist/data-branching-DiLAO4Qt.js +6386 -0
- package/dist/data-branching-Km4lc8P_.cjs +1 -0
- package/dist/data-branching-YQtJJEtn.js +6273 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +22 -69
- package/dist/data.mjs +3 -3
- package/dist/devops-D5yIDM3e.js +8312 -0
- package/dist/devops-DkVluHBp.cjs +17 -0
- package/dist/devops-rVpB0ZAX.cjs +17 -0
- package/dist/devops-zsMUueTd.js +8648 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.d.ts +3 -3
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +106 -63
- package/dist/editors.mjs +55 -54
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +76 -2
- package/dist/feedback.mjs +10 -9
- package/dist/index.cjs +261 -261
- package/dist/index.css +1 -1
- package/dist/index.d.ts +831 -433
- package/dist/index.mjs +27339 -26540
- package/dist/injectStyleOnce-BzC_BCs_.js +9 -0
- package/dist/injectStyleOnce-DeWaxcdf.cjs +1 -0
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +9 -7
- package/dist/lazy.mjs +55 -55
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +99 -43
- package/dist/navigation.mjs +504 -547
- package/dist/no-code-6WyYb3hL.cjs +331 -0
- package/dist/no-code-BH5oVFC6.js +8186 -0
- package/dist/no-code-CnHG5_Vn.js +8186 -0
- package/dist/no-code-DMKlg1Zl.cjs +331 -0
- package/dist/no-code-DiTEnuRv.js +8288 -0
- package/dist/no-code-wG9c0z_T.cjs +331 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.css +1 -1
- package/dist/no-code.d.ts +25 -18
- package/dist/no-code.mjs +3 -3
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +36 -30
- package/dist/overlays.mjs +24 -490
- package/dist/pickerCommons-0vyK1Knv.js +547 -0
- package/dist/pickerCommons-BCRiHDE_.cjs +1 -0
- package/dist/pickerCommons-BFbItm8o.cjs +1 -0
- package/dist/pickerCommons-BHirHJyn.js +548 -0
- package/dist/pickerCommons-Bt8JIaTN.cjs +1 -0
- package/dist/pickerCommons-DkumQ3KE.js +548 -0
- package/dist/pickerCommons.css +1 -1
- package/dist/style.css +15 -9
- package/package.json +4 -6
- package/css/legacy-bg-text-aliases.css +0 -87
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,188 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8c82c30: 1.2.1 — the decisions that waited since 1.2.0, and the debts the CI gates were holding. One API
|
|
8
|
+
change, agreed: `NiceIconSuggestorAI` suggests Nice icons only. Two stylesheets to import if you use
|
|
9
|
+
the packages: `@nice2dev/social/style.css`, `@nice2dev/ui-science/style.css`. Upgrade notes:
|
|
10
|
+
`documentation/omniverk/OMNIVERK_UPGRADE_1.2.1.md`.
|
|
11
|
+
|
|
12
|
+
**Tree-shaking.** An import from a package no longer brings the whole package. Module-level
|
|
13
|
+
statements that may have a side effect — a `displayName` assigned after each component (now
|
|
14
|
+
`Object.assign` inside `/* @__PURE__ */`, or under a development check for plain functions),
|
|
15
|
+
unannotated `forwardRef` / `memo` / `createContext` / icon-factory calls, spreads, registries filled
|
|
16
|
+
at import, `<style>` tags injected at import, a direct `eval` in ui-math — are gone. One import from
|
|
17
|
+
each of 53 packages: 5066.5 kB → 1171.6 kB (`@nice2dev/ui` 1928.2 kB → 12.9 kB, icon packs 48–275 kB
|
|
18
|
+
→ 1.6–2.6 kB). `defaultViewRegistry` has the Nice\* input controls from the start, each loading its
|
|
19
|
+
module on first render; sixteen controls add their styles to `<head>` on first render.
|
|
20
|
+
|
|
21
|
+
**Dead code.** 405 source files no entry point imported (never on npm) are deleted;
|
|
22
|
+
`NiceClipboardStack` (`@nice2dev/ui`) and `NiceSampleBrowser` (`@nice2dev/ui-audio`), finished and
|
|
23
|
+
documented, are exported.
|
|
24
|
+
|
|
25
|
+
**ui-mobile draws Nice icons.** New peer `@nice2dev/icons ^1.2.0`; `TabIcons`, `DrawerIcons`,
|
|
26
|
+
`HeaderIcons`, the `NiceSwipeActions` presets and the `NiceInfiniteScroll` states are `Ntd*` icons
|
|
27
|
+
instead of pasted `<svg>`, simple glyphs are CSS marks. `@nice2dev/icons` adds `NtdReply` and
|
|
28
|
+
`NtdInbox`; an icon no longer throws without `window.matchMedia`.
|
|
29
|
+
|
|
30
|
+
**`NiceIconSuggestorAI` (breaking, agreed).** `AIIconLibrary` is `'nice'`; `svgPath` and `unicode`
|
|
31
|
+
left `AISuggestedIcon`; the preview is a `<NiceIcon>`, "Copy SVG" is "Copy JSX".
|
|
32
|
+
|
|
33
|
+
**Peer ranges.** Every internal `@nice2dev/*` peer is `^1.2.0` (was as wide as `^1.0.20`), except
|
|
34
|
+
`@nice2dev/icons ^1.2.1` where a package draws an icon new in 1.2.1: ui-mobile (`NtdReply`,
|
|
35
|
+
`NtdInbox`), ui-audio (`NtdMicrophoneOff`) and ui-security (`NtdBackspace`). ui-security, licensing
|
|
36
|
+
(`^1.2.0`) and templates (`^1.2.0`) gain the `@nice2dev/icons` peer: their glyph icons (`⌫`, `←`,
|
|
37
|
+
`→`, `↑`, `↓`) are Nice icons now. `@nice2dev/icons` adds `NtdBackspace`.
|
|
38
|
+
|
|
39
|
+
**Class names inside components.** 834 class names in library stylesheets had no `nice-` prefix
|
|
40
|
+
(`.tab-button`, `.status-badge`, `.selected`, …) and styled every element of that name on the page.
|
|
41
|
+
They follow `nice-{block}__{element}--{modifier}` now — no change on screen. The class theme hooks
|
|
42
|
+
next to `[data-theme]` on seven controls (`dark` on the AI chart / data grid / code and HTML
|
|
43
|
+
editors / form builder, `light-theme` on `NiceMAM` and `NiceVideoAnnotator`) are `nice-dark` /
|
|
44
|
+
`nice-light`; `NiceLowPowerMode` marks `<html>` with `nice-lpm-no-animations` /
|
|
45
|
+
`nice-lpm-reduced-quality`; the `NiceVideoEditor` of `@nice2dev/ui-video` styles its elements under
|
|
46
|
+
`nice-video-studio`, so they no longer collide with the `NiceVideoEditor` of `@nice2dev/ui`.
|
|
47
|
+
Rules for classes nothing rendered are gone, among them the stylesheet of `NiceGanttChart`, which
|
|
48
|
+
left ui-erp in 1.0.10.
|
|
49
|
+
|
|
50
|
+
**Translations.** About 3,400 UI texts in 32 packages were hard-coded; they go through `t()` now,
|
|
51
|
+
with the English text unchanged and pl / de / fr / es / uk in `@nice2dev/i18n` (ui-diagrams,
|
|
52
|
+
ui-presentations and ui-math in their own dictionaries). In `@nice2dev/events` and
|
|
53
|
+
`@nice2dev/admin` that includes column headers, option labels and the statuses and roles they used
|
|
54
|
+
to print raw (`checked-in`, `no-show`) — English labels for those come from the dictionary. ui-3d and ui-graphics read the app's
|
|
55
|
+
global translator, as ui-audio does since 1.2.0 — their own provider overrides it. ui-audio's
|
|
56
|
+
controls used 631 keys the dictionary did not have (English in every language), and the radio
|
|
57
|
+
player showed raw keys (`search_stations`). Texts that were hard-coded **in Polish** — in
|
|
58
|
+
`NiceSidebarNav`, `NiceNetworkDiscoveryPanel`, the backup and smart-home controls,
|
|
59
|
+
`NiceSavedQueryPanel`, `NiceNotificationPreferences`, the ui-buildings panels, the ui-printing
|
|
60
|
+
template editor and the photo editor — default to English now; Polish is in the dictionary. English
|
|
61
|
+
plurals glued on (`result{s}`) are two keys. `presentationsTranslator(lang)` (ui-presentations)
|
|
62
|
+
translates outside its provider.
|
|
63
|
+
|
|
64
|
+
**List props are optional.** 170 list props (`items`, `columns`, `data`, …) in 15 packages that
|
|
65
|
+
were required without a default are optional, with a stable empty default; every one of those
|
|
66
|
+
controls mounts without data (tested). `NiceStockChart` without data no longer computes NaN
|
|
67
|
+
coordinates.
|
|
68
|
+
|
|
69
|
+
**Unstyled components get stylesheets.** 98 components rendered class names no stylesheet had —
|
|
70
|
+
admin panels, auth forms, events rounds and pickers, the ERP invoice / purchase order / VAT table /
|
|
71
|
+
HR dashboard, the radio player, `NiceInbox`, PWA prompts, `NiceViewRenderer`, shells, smart-home,
|
|
72
|
+
… The fixed layout that sat in inline style objects is in classes now, so an app can override it;
|
|
73
|
+
values that depend on data stay inline. **`@nice2dev/social` and `@nice2dev/ui-science` ship a
|
|
74
|
+
stylesheet — import `@nice2dev/social/style.css` / `@nice2dev/ui-science/style.css`.** ui-science's
|
|
75
|
+
`sideEffects` is `["*.css"]`. Colours, spacing and radii in every stylesheet come from theme tokens
|
|
76
|
+
(visible in dark themes: `NiceRecipe` difficulty badges, transcoder states, warehouse heat map).
|
|
77
|
+
|
|
78
|
+
**Icons only from Nice.** About 130 glyphs (`×`, `→`, `↑`) and 100 pasted `<svg>` used as icons
|
|
79
|
+
are Nice icons; 11 `<svg>` stay as the control's own graphic (logos, spinners, checkbox mark). `NiceIcon`
|
|
80
|
+
gains `pin`, `mic-off`, `log-out`, `chevrons-left`, `chevrons-right`, `zoom-in`, `zoom-out`,
|
|
81
|
+
`navigation`, `refresh-ccw`, `minimize` and `smartphone`; `@nice2dev/icons` gains
|
|
82
|
+
`NtdMicrophoneOff`. The `icon` fields of the module, menu, tab, mode, quick-action, scene and admin
|
|
83
|
+
widget DTOs, notification channels and view toolbar items are rendered through `NiceIcon` — they
|
|
84
|
+
used to be printed as text. `NiceRatings` `thumbs` draws shapes instead of emoji.
|
|
85
|
+
|
|
86
|
+
**Dialogs instead of `window.prompt` / `confirm` / `alert`.** New `useNiceDialogs()` — `prompt`,
|
|
87
|
+
`confirm` and `alert` as promises on `NicePromptDialog` / `NiceConfirmDialog` — and
|
|
88
|
+
`NiceConfirmDialog.showReject`. Seventeen controls asked through the browser's blocking dialogs and
|
|
89
|
+
use the library's now (`NiceFileManager`, `NiceHtmlEditor`, `NiceViewRenderer` action `confirm`, the 3D,
|
|
90
|
+
vector and pixel editors, …). Keys pressed in `NicePromptDialog` / `NiceConfirmDialog` no longer
|
|
91
|
+
reach the page's shortcuts (Escape still closes them), and `NicePromptDialog`'s backdrop covers the
|
|
92
|
+
whole viewport.
|
|
93
|
+
|
|
94
|
+
**Smaller fixes.** `NiceFileManager.items` is optional. `NiceMLStudio` status badges: `draft`,
|
|
95
|
+
`registered`, `archived`, `cancelled` get a neutral colour, deploying / stopped deployments theirs.
|
|
96
|
+
Component docs (`doc.json`) list only props the components have. `NiceMobileTabs`: tabs beyond
|
|
97
|
+
`maxTabs` open from "More" (it only logged). `NiceInventoryManager`: new `onCreatePurchaseOrder`;
|
|
98
|
+
without it the "Create PO" button is gone (it only logged). Keyboard: `NiceNavShell` tabs follow the
|
|
99
|
+
WAI-ARIA tabs pattern, clickable `NiceDeviceTile` / `NiceCardGroup` cards and animated icons with
|
|
100
|
+
`trigger="click"` are focusable. ui-math: `CalculatorService.evaluate` parses instead of running
|
|
101
|
+
`new Function` (`asin`, `sinh`, `ceil`, exponents and `angleUnit` were wrong); `ExpressionParser`
|
|
102
|
+
takes `functions`, `constants`, `ignoreCase` and `strict`, multiplies implicitly (`2x`) and reads `^`
|
|
103
|
+
right to left. `InvoiceLine.vatRate` and `VatRate.rate` are documented as fractions (0.23).
|
|
104
|
+
`AmqpServerBinding` is `Record<string, never>`.
|
|
105
|
+
|
|
106
|
+
- Updated dependencies [8c82c30]
|
|
107
|
+
- @nice2dev/i18n@1.2.1
|
|
108
|
+
- @nice2dev/ui-core@1.2.1
|
|
109
|
+
|
|
110
|
+
## 1.2.0
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- 3a4939d: 1.2.0 — the API cleanup announced for this version, dictionaries per language by default, and
|
|
115
|
+
three new controls. **Breaking:** every removal has a replacement, listed name by name in
|
|
116
|
+
`documentation/omniverk/OMNIVERK_UPGRADE_1.2.0.md`.
|
|
117
|
+
|
|
118
|
+
**Removed (breaking).** All 118 `@deprecated` names: the aliases without the `Nice` prefix in
|
|
119
|
+
`ui-audio`, `ui-graphics` and `ui-3d`; `NiceBarcodeGenerator` (→ `NiceBarcode`), `NiceFloorPlanCanvas`
|
|
120
|
+
(→ `NiceSpatialEditor` in `@nice2dev/ui-buildings`), the v2 props and types of `NiceTopNav`,
|
|
121
|
+
`NiceProgress.showLabel`, `NiceCountryPicker.showDialCode` / `showFlag`, `type` on
|
|
122
|
+
`NiceDateTimePicker` / `NiceDateRangeBox` (→ `dateFormatPreset`); `ZoneOccupancy` in
|
|
123
|
+
`ui-buildings` and `events`, the `SmartHome*` types; the icon variant `flat` (→ `cutout`) and
|
|
124
|
+
`NiceIconEditor` (→ `NiceVectorEditor`); `NiceSizeLegacy`; the `snapGrid` module of `ui-diagrams` (→
|
|
125
|
+
`@nice2dev/spatial-core`); the opt-in stylesheet `@nice2dev/ui/css/legacy-bg-text-aliases.css`, which
|
|
126
|
+
formed an alias cycle with `style.css`. Props that were accepted and never read — 19 on
|
|
127
|
+
`NiceModuleGrid`, and more on `NiceAutocomplete`, `NiceTaskInbox`, `NiceConsentBanner`, the
|
|
128
|
+
building and communication controls, four `ui-audio` panels and `NiceStreamDashboard` — are gone
|
|
129
|
+
from the types. `NiceResourceAllocation` in `ui-erp` is `NiceCapacityPlanner` (the one in `ui`
|
|
130
|
+
keeps its name); `NiceGenericPlayerStageVisualizer` (→ `NiceStageVisualizer`) and
|
|
131
|
+
`NiceCubeBrowserProps` are removed. The `@nice2dev/ui/overlays` entry calls its modal, drawer,
|
|
132
|
+
bottom sheet and context menu `NiceOverlayModal`, `NiceOverlayDrawer`, `NiceOverlayBottomSheet` and
|
|
133
|
+
`NiceOverlayContextMenu`: the old names belonged to different components of `@nice2dev/ui`.
|
|
134
|
+
|
|
135
|
+
**Dictionaries per language.** `NiceI18nProvider` loads only the language in use, with `import()`
|
|
136
|
+
(it was `NiceI18nLazyProvider` in 1.1.10, which stays as the same component); the controls show their
|
|
137
|
+
built-in English until it arrives — `await loadNiceDictionary(lang)` before the first render to start
|
|
138
|
+
in the language. Nothing on the main entry of `@nice2dev/i18n` imports a dictionary any more:
|
|
139
|
+
`NICE_I18N_DICTIONARIES`, `createTranslator`, `NICE_I18N_VARIANTS` / `resolvePlVariant` and the
|
|
140
|
+
translation tooling moved to the new entry `@nice2dev/i18n/all`, and `@nice2dev/ui-core` no longer
|
|
141
|
+
re-exports the dictionary map. `@nice2dev/ui` with what it bundles: 1283 kB → 952 kB gzip loaded up
|
|
142
|
+
front. The `ui-audio` controls read the app's `NiceI18nProvider` now; their own provider overrides it.
|
|
143
|
+
|
|
144
|
+
**New controls.** `NiceRecurrenceEditor`, `NiceStopwatch`, `NiceCountdownTimer` (`@nice2dev/ui`) and
|
|
145
|
+
`NicePasswordGenerator` (`@nice2dev/auth`), plus `recurrenceDates()` and `generatePassword()`.
|
|
146
|
+
`NiceScheduler` honours a weekly rule's `byDay`, which it ignored.
|
|
147
|
+
|
|
148
|
+
**Visible changes.** The palette meets WCAG AA for text on every fill: darker fills in the light
|
|
149
|
+
theme, dark text on the fills of the dark theme (new `--nice-text-on-success` / `-error` / `-info` /
|
|
150
|
+
`-accent` / `-warning`; `NiceThemeText` takes `onSuccess`, `onError`, `onInfo`, `onWarning`). Mobile
|
|
151
|
+
and platform panels follow the app theme instead of `prefers-color-scheme`. Swipes in
|
|
152
|
+
`NiceSwipeActions`, `NiceTouchTable` and `NiceMobileCalendar` work with a mouse and a pen. The
|
|
153
|
+
`ui-forms` editors have the intended spacing (it was four times too large). `NiceMAM`,
|
|
154
|
+
`NiceTranscoder`, `NiceVideoAnnotator` and `NiceStreamDashboard` use `nice-`-prefixed BEM classes.
|
|
155
|
+
|
|
156
|
+
**Fixes.** Controls that invented results ask the host instead: `NiceIntegrationHub`,
|
|
157
|
+
`NiceMLStudio` (`onExperimentRun` may return metrics), `NiceRemoteManagement`
|
|
158
|
+
(`onCaptureScreenshot`), `NicePoseDetector` (`detector`), `NiceBatchScannerProvider`,
|
|
159
|
+
`NiceCacheStrategies`; `NiceLowCodeStudio` accepts dropped components. Controls that did nothing
|
|
160
|
+
work or say why they are off: `NiceStreamDashboard` adds sources, sends chat and runs the chosen
|
|
161
|
+
transition (new `onAddPlatform`, `onSendChatMessage`, `onTransition`, `onScreenshot`,
|
|
162
|
+
`onOpenAudioMixer`, `onOpenSettings`; `receiveChatMessage` feeds incoming chat), `NiceMLStudio`
|
|
163
|
+
downloads through `onModelDownload`, `NiceETLBuilder` saves through `onSave` (its Save button had
|
|
164
|
+
no handler), `NiceTranscoder` makes jobs of picked and dropped files, `NiceAutomationEditor` offers
|
|
165
|
+
the trigger types its model has. Texts of about fifty components go
|
|
166
|
+
through `t()` in six languages, among them the AI data grid, chart and form builders, the ML
|
|
167
|
+
studio, the report designer, the song picker, `NiceProtocolConfig`, `NiceETLBuilder` and
|
|
168
|
+
`NiceInlineHelp` — every key the controls pass to `t()` now has a dictionary entry, so none of
|
|
169
|
+
them stays English under another language; `NiceDataGridAI` sorts on a query in any language, not
|
|
170
|
+
only in English. `NiceWindow`, `NiceConsole`, `NiceFileManager` and `NiceGitManager` no longer
|
|
171
|
+
crash when `accessMode` switches to or from `'hidden'`. Ids come from `createId()` (`@nice2dev/ui-core`), so nothing throws
|
|
172
|
+
outside a secure context as `crypto.randomUUID()` did on plain http. `ui-3d` runs on three r183
|
|
173
|
+
without its deprecation warnings. `NiceRemoteManagement` calls the handlers of the latest render.
|
|
174
|
+
The AI hint popover and the `ui-platform` panels follow the app theme, not the system's or a
|
|
175
|
+
`.dark` class on the host. `NiceCommandPalette` has styles and its search filters;
|
|
176
|
+
`NiceTimeoutFeedback` starts its clock; `NiceOfflineBanner` takes `online`; Monaco's workers in
|
|
177
|
+
`NiceCodeEditor` load; the `ui-audio` panels that used Bootstrap classes use Nice controls; colours
|
|
178
|
+
that reached a canvas as `var(…)` (karaoke lanes and notes) are resolved first.
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- Updated dependencies [3a4939d]
|
|
183
|
+
- @nice2dev/i18n@1.2.0
|
|
184
|
+
- @nice2dev/ui-core@1.2.0
|
|
185
|
+
|
|
3
186
|
## 1.1.10
|
|
4
187
|
|
|
5
188
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -680,26 +680,18 @@ Create a custom theme by overriding CSS variables:
|
|
|
680
680
|
}
|
|
681
681
|
```
|
|
682
682
|
|
|
683
|
-
###
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
`--
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
Reading the old names never stopped working and needs no import — `style.css`
|
|
697
|
-
declares them as aliases. This sheet is only about the reverse direction, and it is
|
|
698
|
-
removed in 1.2. Prefer setting `--nice-color-primary` directly: it cannot collide
|
|
699
|
-
with your own variables, and unlike the shorthand it is safe to scope to a subtree.
|
|
700
|
-
|
|
701
|
-
The alias file only fills in gaps (it never overrides values you set
|
|
702
|
-
yourself) and follows the active Nice theme (light / dark) automatically.
|
|
683
|
+
### Following your app's own variables
|
|
684
|
+
|
|
685
|
+
`style.css` declares the conventional shorthand names (`--color-primary`, `--bg-primary`,
|
|
686
|
+
`--text-primary`, `--border-color`, `--shadow-sm/md/lg`, …) as aliases of the Nice tokens,
|
|
687
|
+
so selectors that read them keep working. The reverse — Nice controls following a value your
|
|
688
|
+
app assigns to `--bg-primary` — is done by assigning that value to the Nice token instead, as
|
|
689
|
+
in **Custom Themes** above.
|
|
690
|
+
|
|
691
|
+
Up to 1.1.x an opt-in sheet, `@nice2dev/ui/css/legacy-bg-text-aliases.css`, did this with
|
|
692
|
+
`--nice-bg-primary: var(--bg-primary, …)`. It was removed in 1.2.0: together with the aliases
|
|
693
|
+
in `style.css` it formed a cycle wherever the app had not set the shorthand name itself, and the
|
|
694
|
+
browser then drops both variables. Do not recreate it with `var()` — assign values.
|
|
703
695
|
|
|
704
696
|
---
|
|
705
697
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", o = "NiceApiExplorer", c = "API documentation explorer component.", s = "display", t = "1.0.0", n = "stable", i = [{ name: "spec", type: "OpenAPISpec | string", required: !0, description: "OpenAPI specification" }, { name: "baseUrl", type: "string", description: "API base URL" }], p = [{ title: "API Explorer", code: '<NiceApiExplorer spec={openApiSpec} baseUrl="/api" />' }], a = { keyboard: ["Tab to navigate"], aria: ["Navigation role"] }, r = ["NiceDocumentationViewer", "NiceConsole"], l = {
|
|
2
|
+
$schema: e,
|
|
3
|
+
name: o,
|
|
4
|
+
description: c,
|
|
5
|
+
category: s,
|
|
6
|
+
since: t,
|
|
7
|
+
status: n,
|
|
8
|
+
props: i,
|
|
9
|
+
examples: p,
|
|
10
|
+
accessibility: a,
|
|
11
|
+
seeAlso: r
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as $schema,
|
|
15
|
+
a as accessibility,
|
|
16
|
+
s as category,
|
|
17
|
+
l as default,
|
|
18
|
+
c as description,
|
|
19
|
+
p as examples,
|
|
20
|
+
o as name,
|
|
21
|
+
i as props,
|
|
22
|
+
r as seeAlso,
|
|
23
|
+
t as since,
|
|
24
|
+
n as status
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",s="NiceApiExplorer",o="API documentation explorer component.",t="display",c="1.0.0",i="stable",n=[{name:"spec",type:"OpenAPISpec | string",required:!0,description:"OpenAPI specification"},{name:"baseUrl",type:"string",description:"API base URL"}],a=[{title:"API Explorer",code:'<NiceApiExplorer spec={openApiSpec} baseUrl="/api" />'}],p={keyboard:["Tab to navigate"],aria:["Navigation role"]},r=["NiceDocumentationViewer","NiceConsole"],l={$schema:e,name:s,description:o,category:t,since:c,status:i,props:n,examples:a,accessibility:p,seeAlso:r};exports.$schema=e;exports.accessibility=p;exports.category=t;exports.default=l;exports.description=o;exports.examples=a;exports.name=s;exports.props=n;exports.seeAlso=r;exports.since=c;exports.status=i;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", o = "NiceBPMNDesigner", n = "BPMN 2.0 workflow designer with visual process modeling capabilities.", t = "workflow", s = "1.0.0", a = "stable", i = [{ name: "value", type: "BPMNDocument", description: "BPMN diagram" }, { name: "onChange", type: "(doc: BPMNDocument) => void", description: "Change callback" }, { name: "palette", type: "BPMNElement[]", description: "Element palette" }, { name: "readOnly", type: "boolean", default: "false", description: "Read-only mode" }, { name: "showMinimap", type: "boolean", default: "true", description: "Show minimap" }, { name: "showProperties", type: "boolean", default: "true", description: "Show properties panel" }, { name: "onValidate", type: "(errors: ValidationError[]) => void", description: "Validation callback" }, { name: "exportFormats", type: "string[]", default: "['bpmn', 'svg', 'png']", description: "Export formats" }], r = [{ title: "BPMN Designer", description: "Design workflow process", code: `<NiceBPMNDesigner
|
|
2
|
+
value={workflow}
|
|
3
|
+
onChange={setWorkflow}
|
|
4
|
+
showMinimap
|
|
5
|
+
showProperties
|
|
6
|
+
onValidate={(e) => setErrors(e)}
|
|
7
|
+
exportFormats={['bpmn', 'svg']}
|
|
8
|
+
/>` }], c = { keyboard: ["Tab through elements", "Delete to remove", "Arrow keys to move"], aria: ["Canvas with element descriptions"] }, p = ["NiceTaskInbox", "NiceInstanceMonitor"], l = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: o,
|
|
11
|
+
description: n,
|
|
12
|
+
category: t,
|
|
13
|
+
since: s,
|
|
14
|
+
status: a,
|
|
15
|
+
props: i,
|
|
16
|
+
examples: r,
|
|
17
|
+
accessibility: c,
|
|
18
|
+
seeAlso: p
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
c as accessibility,
|
|
23
|
+
t as category,
|
|
24
|
+
l as default,
|
|
25
|
+
n as description,
|
|
26
|
+
r as examples,
|
|
27
|
+
o as name,
|
|
28
|
+
i as props,
|
|
29
|
+
p as seeAlso,
|
|
30
|
+
s as since,
|
|
31
|
+
a 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",o="NiceBPMNDesigner",t="BPMN 2.0 workflow designer with visual process modeling capabilities.",n="workflow",s="1.0.0",i="stable",a=[{name:"value",type:"BPMNDocument",description:"BPMN diagram"},{name:"onChange",type:"(doc: BPMNDocument) => void",description:"Change callback"},{name:"palette",type:"BPMNElement[]",description:"Element palette"},{name:"readOnly",type:"boolean",default:"false",description:"Read-only mode"},{name:"showMinimap",type:"boolean",default:"true",description:"Show minimap"},{name:"showProperties",type:"boolean",default:"true",description:"Show properties panel"},{name:"onValidate",type:"(errors: ValidationError[]) => void",description:"Validation callback"},{name:"exportFormats",type:"string[]",default:"['bpmn', 'svg', 'png']",description:"Export formats"}],r=[{title:"BPMN Designer",description:"Design workflow process",code:`<NiceBPMNDesigner
|
|
2
|
+
value={workflow}
|
|
3
|
+
onChange={setWorkflow}
|
|
4
|
+
showMinimap
|
|
5
|
+
showProperties
|
|
6
|
+
onValidate={(e) => setErrors(e)}
|
|
7
|
+
exportFormats={['bpmn', 'svg']}
|
|
8
|
+
/>`}],c={keyboard:["Tab through elements","Delete to remove","Arrow keys to move"],aria:["Canvas with element descriptions"]},l=["NiceTaskInbox","NiceInstanceMonitor"],p={$schema:e,name:o,description:t,category:n,since:s,status:i,props:a,examples:r,accessibility:c,seeAlso:l};exports.$schema=e;exports.accessibility=c;exports.category=n;exports.default=p;exports.description=t;exports.examples=r;exports.name=o;exports.props=a;exports.seeAlso=l;exports.since=s;exports.status=i;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", i = "NiceBackupDiffViewer", c = "Backup diff comparison viewer.", t = "display", s = "1.0.0", o = "stable", n = [{ name: "original", type: "BackupSnapshot", required: !0, description: "Original snapshot" }, { name: "current", type: "BackupSnapshot", required: !0, description: "Current snapshot" }], r = [{ title: "Diff Viewer", code: "<NiceBackupDiffViewer original={original} current={current} />" }], a = { keyboard: [], aria: ["Diff description"] }, p = ["NiceBackupList", "NiceConflictResolution"], u = {
|
|
2
|
+
$schema: e,
|
|
3
|
+
name: i,
|
|
4
|
+
description: c,
|
|
5
|
+
category: t,
|
|
6
|
+
since: s,
|
|
7
|
+
status: o,
|
|
8
|
+
props: n,
|
|
9
|
+
examples: r,
|
|
10
|
+
accessibility: a,
|
|
11
|
+
seeAlso: p
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as $schema,
|
|
15
|
+
a as accessibility,
|
|
16
|
+
t as category,
|
|
17
|
+
u as default,
|
|
18
|
+
c as description,
|
|
19
|
+
r as examples,
|
|
20
|
+
i as name,
|
|
21
|
+
n as props,
|
|
22
|
+
p as seeAlso,
|
|
23
|
+
s as since,
|
|
24
|
+
o as status
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",i="NiceBackupDiffViewer",s="Backup diff comparison viewer.",c="display",t="1.0.0",o="stable",n=[{name:"original",type:"BackupSnapshot",required:!0,description:"Original snapshot"},{name:"current",type:"BackupSnapshot",required:!0,description:"Current snapshot"}],a=[{title:"Diff Viewer",code:"<NiceBackupDiffViewer original={original} current={current} />"}],r={keyboard:[],aria:["Diff description"]},p=["NiceBackupList","NiceConflictResolution"],u={$schema:e,name:i,description:s,category:c,since:t,status:o,props:n,examples:a,accessibility:r,seeAlso:p};exports.$schema=e;exports.accessibility=r;exports.category=c;exports.default=u;exports.description=s;exports.examples=a;exports.name=i;exports.props=n;exports.seeAlso=p;exports.since=t;exports.status=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",s="NiceBackupList",c="Backup history list component.",t="display",o="1.0.0",a="stable",i=[{name:"onRestore",type:"(backup: Backup) => void",description:"Restore callback"},{name:"onDelete",type:"(backup: Backup) => void",description:"Delete callback"}],n=[{title:"Backup List",code:"<NiceBackupList backups={backups} onRestore={handleRestore} />"}],p={keyboard:["Arrow keys"],aria:["List role"]},l=["NiceBackupRestoreDialog","NiceDataList"],r={$schema:e,name:s,description:c,category:t,since:o,status:a,props:i,examples:n,accessibility:p,seeAlso:l};exports.$schema=e;exports.accessibility=p;exports.category=t;exports.default=r;exports.description=c;exports.examples=n;exports.name=s;exports.props=i;exports.seeAlso=l;exports.since=o;exports.status=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", c = "NiceBackupList", s = "Backup history list component.", t = "display", o = "1.0.0", a = "stable", i = [{ name: "onRestore", type: "(backup: Backup) => void", description: "Restore callback" }, { name: "onDelete", type: "(backup: Backup) => void", description: "Delete callback" }], n = [{ title: "Backup List", code: "<NiceBackupList backups={backups} onRestore={handleRestore} />" }], p = { keyboard: ["Arrow keys"], aria: ["List role"] }, l = ["NiceBackupRestoreDialog", "NiceDataList"], r = {
|
|
2
|
+
$schema: e,
|
|
3
|
+
name: c,
|
|
4
|
+
description: s,
|
|
5
|
+
category: t,
|
|
6
|
+
since: o,
|
|
7
|
+
status: a,
|
|
8
|
+
props: i,
|
|
9
|
+
examples: n,
|
|
10
|
+
accessibility: p,
|
|
11
|
+
seeAlso: l
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as $schema,
|
|
15
|
+
p as accessibility,
|
|
16
|
+
t as category,
|
|
17
|
+
r as default,
|
|
18
|
+
s as description,
|
|
19
|
+
n as examples,
|
|
20
|
+
c as name,
|
|
21
|
+
i as props,
|
|
22
|
+
l as seeAlso,
|
|
23
|
+
o as since,
|
|
24
|
+
a as status
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceBackupRestoreDialog",c="Backup restore confirmation dialog.",s="overlay",t="1.0.0",a="stable",i=[{name:"open",type:"boolean",required:!0,description:"Dialog open state"},{name:"onConfirm",type:"() => void",description:"Confirm callback"},{name:"onCancel",type:"() => void",description:"Cancel callback"}],n=[{title:"Restore Dialog",code:"<NiceBackupRestoreDialog open={open} backup={backup} onConfirm={restore} />"}],r={keyboard:["Escape to close"],aria:["Dialog role"]},l=["NiceConfirmDialog","NiceBackupList"],p={$schema:e,name:o,description:c,category:s,since:t,status:a,props:i,examples:n,accessibility:r,seeAlso:l};exports.$schema=e;exports.accessibility=r;exports.category=s;exports.default=p;exports.description=c;exports.examples=n;exports.name=o;exports.props=i;exports.seeAlso=l;exports.since=t;exports.status=a;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const o = "https://nice2dev.com/schemas/component-doc-v1.json", e = "NiceBackupRestoreDialog", c = "Backup restore confirmation dialog.", a = "overlay", t = "1.0.0", s = "stable", n = [{ name: "open", type: "boolean", required: !0, description: "Dialog open state" }, { name: "onConfirm", type: "() => void", description: "Confirm callback" }, { name: "onCancel", type: "() => void", description: "Cancel callback" }], i = [{ title: "Restore Dialog", code: "<NiceBackupRestoreDialog open={open} backup={backup} onConfirm={restore} />" }], r = { keyboard: ["Escape to close"], aria: ["Dialog role"] }, p = ["NiceConfirmDialog", "NiceBackupList"], l = {
|
|
2
|
+
$schema: o,
|
|
3
|
+
name: e,
|
|
4
|
+
description: c,
|
|
5
|
+
category: a,
|
|
6
|
+
since: t,
|
|
7
|
+
status: s,
|
|
8
|
+
props: n,
|
|
9
|
+
examples: i,
|
|
10
|
+
accessibility: r,
|
|
11
|
+
seeAlso: p
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
o as $schema,
|
|
15
|
+
r as accessibility,
|
|
16
|
+
a as category,
|
|
17
|
+
l as default,
|
|
18
|
+
c as description,
|
|
19
|
+
i as examples,
|
|
20
|
+
e as name,
|
|
21
|
+
n as props,
|
|
22
|
+
p as seeAlso,
|
|
23
|
+
t as since,
|
|
24
|
+
s as status
|
|
25
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", c = "NiceBackupScheduler", n = "Backup scheduler with cron-like scheduling and retention policies.", t = "backup", s = "1.0.0", o = "stable", i = [{ name: "schedule", type: "BackupSchedule", description: "Current schedule" }, { name: "onChange", type: "(schedule: BackupSchedule) => void", description: "Change callback" }, { name: "retention", type: "RetentionPolicy", description: "Retention policy" }, { name: "presets", type: "SchedulePreset[]", description: "Schedule presets" }, { name: "timezone", type: "string", description: "Schedule timezone" }], a = [{ title: "Backup Scheduler", description: "Schedule backups", code: `<NiceBackupScheduler
|
|
2
|
+
schedule={backupSchedule}
|
|
3
|
+
onChange={setBackupSchedule}
|
|
4
|
+
retention={retentionPolicy}
|
|
5
|
+
onRetentionChange={setRetentionPolicy}
|
|
6
|
+
presets={schedulePresets}
|
|
7
|
+
/>` }], d = { keyboard: ["Tab through fields"], aria: ["Schedule form", "Time selection"] }, l = ["NiceBackupTagEditor", "NiceScheduler"], u = {
|
|
8
|
+
$schema: e,
|
|
9
|
+
name: c,
|
|
10
|
+
description: n,
|
|
11
|
+
category: t,
|
|
12
|
+
since: s,
|
|
13
|
+
status: o,
|
|
14
|
+
props: i,
|
|
15
|
+
examples: a,
|
|
16
|
+
accessibility: d,
|
|
17
|
+
seeAlso: l
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
e as $schema,
|
|
21
|
+
d as accessibility,
|
|
22
|
+
t as category,
|
|
23
|
+
u as default,
|
|
24
|
+
n as description,
|
|
25
|
+
a as examples,
|
|
26
|
+
c as name,
|
|
27
|
+
i as props,
|
|
28
|
+
l as seeAlso,
|
|
29
|
+
s as since,
|
|
30
|
+
o as status
|
|
31
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",c="NiceBackupScheduler",t="Backup scheduler with cron-like scheduling and retention policies.",n="backup",s="1.0.0",o="stable",i=[{name:"schedule",type:"BackupSchedule",description:"Current schedule"},{name:"onChange",type:"(schedule: BackupSchedule) => void",description:"Change callback"},{name:"retention",type:"RetentionPolicy",description:"Retention policy"},{name:"presets",type:"SchedulePreset[]",description:"Schedule presets"},{name:"timezone",type:"string",description:"Schedule timezone"}],a=[{title:"Backup Scheduler",description:"Schedule backups",code:`<NiceBackupScheduler
|
|
2
|
+
schedule={backupSchedule}
|
|
3
|
+
onChange={setBackupSchedule}
|
|
4
|
+
retention={retentionPolicy}
|
|
5
|
+
onRetentionChange={setRetentionPolicy}
|
|
6
|
+
presets={schedulePresets}
|
|
7
|
+
/>`}],l={keyboard:["Tab through fields"],aria:["Schedule form","Time selection"]},d=["NiceBackupTagEditor","NiceScheduler"],u={$schema:e,name:c,description:t,category:n,since:s,status:o,props:i,examples:a,accessibility:l,seeAlso:d};exports.$schema=e;exports.accessibility=l;exports.category=n;exports.default=u;exports.description=t;exports.examples=a;exports.name=c;exports.props=i;exports.seeAlso=d;exports.since=s;exports.status=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",s="NiceBackupStatusBadge",t="Backup status indicator badge.",c="display",a="1.0.0",n="stable",o=[{name:"status",type:"'synced' | 'pending' | 'error' | 'syncing'",required:!0,description:"Backup status"}],i=[{title:"Status Badge",code:'<NiceBackupStatusBadge status="synced" lastBackup={new Date()} />'}],u={keyboard:[],aria:["Status announcement"]},d=["NiceBadge"],p={$schema:e,name:s,description:t,category:c,since:a,status:n,props:o,examples:i,accessibility:u,seeAlso:d};exports.$schema=e;exports.accessibility=u;exports.category=c;exports.default=p;exports.description=t;exports.examples=i;exports.name=s;exports.props=o;exports.seeAlso=d;exports.since=a;exports.status=n;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const t = "https://nice2dev.com/schemas/component-doc-v1.json", s = "NiceBackupStatusBadge", e = "Backup status indicator badge.", a = "display", c = "1.0.0", n = "stable", o = [{ name: "status", type: "'synced' | 'pending' | 'error' | 'syncing'", required: !0, description: "Backup status" }], i = [{ title: "Status Badge", code: '<NiceBackupStatusBadge status="synced" lastBackup={new Date()} />' }], d = { keyboard: [], aria: ["Status announcement"] }, u = ["NiceBadge"], p = {
|
|
2
|
+
$schema: t,
|
|
3
|
+
name: s,
|
|
4
|
+
description: e,
|
|
5
|
+
category: a,
|
|
6
|
+
since: c,
|
|
7
|
+
status: n,
|
|
8
|
+
props: o,
|
|
9
|
+
examples: i,
|
|
10
|
+
accessibility: d,
|
|
11
|
+
seeAlso: u
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
t as $schema,
|
|
15
|
+
d as accessibility,
|
|
16
|
+
a as category,
|
|
17
|
+
p as default,
|
|
18
|
+
e as description,
|
|
19
|
+
i as examples,
|
|
20
|
+
s as name,
|
|
21
|
+
o as props,
|
|
22
|
+
u as seeAlso,
|
|
23
|
+
c as since,
|
|
24
|
+
n as status
|
|
25
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",a="NiceBackupTagEditor",t="Tag editor for backup labeling and categorization.",s="backup",n="1.0.0",o="stable",c=[{name:"tags",type:"string[]",description:"Current tags"},{name:"onChange",type:"(tags: string[]) => void",description:"Change callback"},{name:"suggestions",type:"string[]",description:"Tag suggestions"},{name:"maxTags",type:"number",description:"Maximum tags allowed"},{name:"placeholder",type:"string",description:"Input placeholder"},{name:"disabled",type:"boolean",default:"false",description:"Disable editing"}],i=[{title:"Backup Tag Editor",description:"Tag backups",code:`<NiceBackupTagEditor
|
|
2
|
+
tags={backupTags}
|
|
3
|
+
onChange={setBackupTags}
|
|
4
|
+
suggestions={commonTags}
|
|
5
|
+
maxTags={10}
|
|
6
|
+
allowCreate
|
|
7
|
+
/>`}],g={keyboard:["Tab to navigate","Enter to add tag"],aria:["Tag list","Tag removal buttons"]},r=["NiceBackupScheduler","NiceTagInput"],p={$schema:e,name:a,description:t,category:s,since:n,status:o,props:c,examples:i,accessibility:g,seeAlso:r};exports.$schema=e;exports.accessibility=g;exports.category=s;exports.default=p;exports.description=t;exports.examples=i;exports.name=a;exports.props=c;exports.seeAlso=r;exports.since=n;exports.status=o;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const a = "https://nice2dev.com/schemas/component-doc-v1.json", e = "NiceBackupTagEditor", t = "Tag editor for backup labeling and categorization.", s = "backup", n = "1.0.0", o = "stable", c = [{ name: "tags", type: "string[]", description: "Current tags" }, { name: "onChange", type: "(tags: string[]) => void", description: "Change callback" }, { name: "suggestions", type: "string[]", description: "Tag suggestions" }, { name: "maxTags", type: "number", description: "Maximum tags allowed" }, { name: "placeholder", type: "string", description: "Input placeholder" }, { name: "disabled", type: "boolean", default: "false", description: "Disable editing" }], i = [{ title: "Backup Tag Editor", description: "Tag backups", code: `<NiceBackupTagEditor
|
|
2
|
+
tags={backupTags}
|
|
3
|
+
onChange={setBackupTags}
|
|
4
|
+
suggestions={commonTags}
|
|
5
|
+
maxTags={10}
|
|
6
|
+
allowCreate
|
|
7
|
+
/>` }], g = { keyboard: ["Tab to navigate", "Enter to add tag"], aria: ["Tag list", "Tag removal buttons"] }, p = ["NiceBackupScheduler", "NiceTagInput"], r = {
|
|
8
|
+
$schema: a,
|
|
9
|
+
name: e,
|
|
10
|
+
description: t,
|
|
11
|
+
category: s,
|
|
12
|
+
since: n,
|
|
13
|
+
status: o,
|
|
14
|
+
props: c,
|
|
15
|
+
examples: i,
|
|
16
|
+
accessibility: g,
|
|
17
|
+
seeAlso: p
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
a as $schema,
|
|
21
|
+
g as accessibility,
|
|
22
|
+
s as category,
|
|
23
|
+
r as default,
|
|
24
|
+
t as description,
|
|
25
|
+
i as examples,
|
|
26
|
+
e as name,
|
|
27
|
+
c as props,
|
|
28
|
+
p as seeAlso,
|
|
29
|
+
n as since,
|
|
30
|
+
o as status
|
|
31
|
+
};
|
|
@@ -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="NiceBottomSheet",n="Bottom sheet with snap points and drag-to-dismiss.",o="mobile",s="1.0.0",a="stable",i=[{name:"open",type:"boolean",required:!0,description:"Open state"},{name:"onOpenChange",type:"(open: boolean) => void",required:!0,description:"Open change callback"},{name:"children",type:"React.ReactNode",required:!0,description:"Sheet content"},{name:"snapPoints",type:"number[]",default:"[0.5, 1]",description:"Snap points (0-1)"},{name:"initialSnap",type:"number",default:"0",description:"Default snap point index"},{name:"onSnap",type:"(index: number) => void",description:"Snap callback"},{name:"showHandle",type:"boolean",default:"true",description:"Show drag handle"}],c=[{title:"Bottom Sheet",description:"Draggable sheet",code:`<NiceBottomSheet
|
|
2
|
+
open={sheetOpen}
|
|
3
|
+
onOpenChange={setSheetOpen}
|
|
4
|
+
snapPoints={[0.3, 0.7, 1]}
|
|
5
|
+
showHandle
|
|
6
|
+
>
|
|
7
|
+
<DetailPanel />
|
|
8
|
+
</NiceBottomSheet>`}],p={keyboard:["Tab within sheet","Escape to close"],aria:["Dialog role","Drag handle description"]},r=["NiceActionSheet","NiceDrawer"],d={$schema:e,name:t,description:n,category:o,since:s,status:a,props:i,examples:c,accessibility:p,seeAlso:r};exports.$schema=e;exports.accessibility=p;exports.category=o;exports.default=d;exports.description=n;exports.examples=c;exports.name=t;exports.props=i;exports.seeAlso=r;exports.since=s;exports.status=a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceBottomSheet", n = "Bottom sheet with snap points and drag-to-dismiss.", o = "mobile", a = "1.0.0", i = "stable", s = [{ name: "open", type: "boolean", required: !0, description: "Open state" }, { name: "onOpenChange", type: "(open: boolean) => void", required: !0, description: "Open change callback" }, { name: "children", type: "React.ReactNode", required: !0, description: "Sheet content" }, { name: "snapPoints", type: "number[]", default: "[0.5, 1]", description: "Snap points (0-1)" }, { name: "initialSnap", type: "number", default: "0", description: "Default snap point index" }, { name: "onSnap", type: "(index: number) => void", description: "Snap callback" }, { name: "showHandle", type: "boolean", default: "true", description: "Show drag handle" }], c = [{ title: "Bottom Sheet", description: "Draggable sheet", code: `<NiceBottomSheet
|
|
2
|
+
open={sheetOpen}
|
|
3
|
+
onOpenChange={setSheetOpen}
|
|
4
|
+
snapPoints={[0.3, 0.7, 1]}
|
|
5
|
+
showHandle
|
|
6
|
+
>
|
|
7
|
+
<DetailPanel />
|
|
8
|
+
</NiceBottomSheet>` }], p = { keyboard: ["Tab within sheet", "Escape to close"], aria: ["Dialog role", "Drag handle description"] }, d = ["NiceActionSheet", "NiceDrawer"], r = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: t,
|
|
11
|
+
description: n,
|
|
12
|
+
category: o,
|
|
13
|
+
since: a,
|
|
14
|
+
status: i,
|
|
15
|
+
props: s,
|
|
16
|
+
examples: c,
|
|
17
|
+
accessibility: p,
|
|
18
|
+
seeAlso: d
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
p as accessibility,
|
|
23
|
+
o as category,
|
|
24
|
+
r as default,
|
|
25
|
+
n as description,
|
|
26
|
+
c as examples,
|
|
27
|
+
t as name,
|
|
28
|
+
s as props,
|
|
29
|
+
d as seeAlso,
|
|
30
|
+
a as since,
|
|
31
|
+
i as status
|
|
32
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceBranchManager",c="Git branch management panel with create, delete, checkout, and merge operations.",a="devops",t="1.0.7",r="stable",s=[{name:"branches",type:"GitBranch[]",required:!1,default:"[]",description:"List of branches"},{name:"currentBranch",type:"string",description:"Currently checked out branch"},{name:"onCheckout",type:"(branch: string) => Promise<void>",description:"Checkout branch callback"},{name:"onDelete",type:"(branch: string) => Promise<void>",description:"Delete branch callback"},{name:"onMerge",type:"(source: string, target: string) => Promise<void>",description:"Merge branch callback"}],o=[{title:"Branch Manager",description:"Manage Git branches",code:`<NiceBranchManager
|
|
2
|
+
branches={branches}
|
|
3
|
+
currentBranch="main"
|
|
4
|
+
onCheckout={handleCheckout}
|
|
5
|
+
onCreate={handleCreate}
|
|
6
|
+
/>`}],i={role:"region",ariaLabel:"Git branch manager"},h=["NiceGitGraph","NiceMergeRequestBuilder"],l={$schema:e,name:n,description:c,category:a,since:t,status:r,props:s,examples:o,accessibility:i,seeAlso:h};exports.$schema=e;exports.accessibility=i;exports.category=a;exports.default=l;exports.description=c;exports.examples=o;exports.name=n;exports.props=s;exports.seeAlso=h;exports.since=t;exports.status=r;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceBranchManager", c = "Git branch management panel with create, delete, checkout, and merge operations.", a = "devops", t = "1.0.7", r = "stable", o = [{ name: "branches", type: "GitBranch[]", required: !1, default: "[]", description: "List of branches" }, { name: "currentBranch", type: "string", description: "Currently checked out branch" }, { name: "onCheckout", type: "(branch: string) => Promise<void>", description: "Checkout branch callback" }, { name: "onDelete", type: "(branch: string) => Promise<void>", description: "Delete branch callback" }, { name: "onMerge", type: "(source: string, target: string) => Promise<void>", description: "Merge branch callback" }], s = [{ title: "Branch Manager", description: "Manage Git branches", code: `<NiceBranchManager
|
|
2
|
+
branches={branches}
|
|
3
|
+
currentBranch="main"
|
|
4
|
+
onCheckout={handleCheckout}
|
|
5
|
+
onCreate={handleCreate}
|
|
6
|
+
/>` }], i = { role: "region", ariaLabel: "Git branch manager" }, h = ["NiceGitGraph", "NiceMergeRequestBuilder"], d = {
|
|
7
|
+
$schema: e,
|
|
8
|
+
name: n,
|
|
9
|
+
description: c,
|
|
10
|
+
category: a,
|
|
11
|
+
since: t,
|
|
12
|
+
status: r,
|
|
13
|
+
props: o,
|
|
14
|
+
examples: s,
|
|
15
|
+
accessibility: i,
|
|
16
|
+
seeAlso: h
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
e as $schema,
|
|
20
|
+
i as accessibility,
|
|
21
|
+
a as category,
|
|
22
|
+
d as default,
|
|
23
|
+
c as description,
|
|
24
|
+
s as examples,
|
|
25
|
+
n as name,
|
|
26
|
+
o as props,
|
|
27
|
+
h as seeAlso,
|
|
28
|
+
t as since,
|
|
29
|
+
r as status
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),i=require("@nice2dev/ui-core"),L=require("react"),W=Object.assign(L.forwardRef(({children:s,variant:$="primary",size:v="md",type:C="button",disabled:o,loading:n,fullWidth:k,onClick:S,leftIcon:r,rightIcon:c,error:l,errorPlacement:y="bottom",ariaLabel:w,className:z,style:B,id:p,accessMode:D,displayStyle:f,...q},O)=>{const a=i.normalizeVariant($),d=i.normalizeSize(v),b=i.useNiceAccessMode(D,p),h=b==="hidden";(b==="disabled"||b==="readOnly")&&(o=!0);const x=i.useComponentDisplayStyle("button",f),R=i.useComponentDisplayClass("button",f);let j=x;if(a!=="primary"){const t={...x};delete t.background,delete t.color,(a==="outline"||a==="ghost")&&(delete t.border,delete t.borderColor,delete t.borderWidth,delete t.borderStyle,delete t.boxShadow),j=t}const u=s!=null&&s!==!1&&!(typeof s=="string"&&s.trim()===""),N=!u&&!!(r||c),m=e.jsxs("button",{ref:O,type:C,id:p,className:`nice-btn nice-btn--${a} nice-btn--${d} nice-btn--ds-${R} ${N?"nice-btn--icon-only":""} ${k?"nice-btn--full-width":""} ${n?"nice-btn--loading":""} ${l&&!y?"nice-btn--has-error":""} ${z||""}`,style:{...j,...B},disabled:o||n,"aria-busy":n||void 0,"aria-disabled":o||n||void 0,"aria-label":w,onClick:S,...q,children:[n&&e.jsx("svg",{className:"nice-btn__spinner",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3","aria-hidden":"true",children:e.jsx("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"31.4 31.4",strokeLinecap:"round"})}),!n&&r&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:r}),!n&&u&&e.jsx("span",{children:s}),n&&u&&e.jsx("span",{style:{visibility:"hidden"},"aria-hidden":"true",children:s}),n&&N&&e.jsx("span",{className:"nice-btn__icon",style:{visibility:"hidden"},"aria-hidden":"true",children:r||c}),!n&&c&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:c})]});if(h)return null;if(!l)return m;const _=e.jsx("div",{className:"nice-field__error",role:"alert",children:l});return y==="right"?e.jsxs("span",{className:`nice-btn-field nice-btn-field--right nice-field--${d}`,children:[m,_]}):h?null:e.jsxs("span",{className:`nice-btn-field nice-btn-field--bottom nice-field--${d}`,children:[m,_]})}),{displayName:"NiceButton"});exports.NiceButton=W;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("@nice2dev/ui-core"),W=require("react"),$=W.forwardRef(({children:i,variant:v="primary",size:w="md",type:C="button",disabled:c,loading:n,fullWidth:D,onClick:k,leftIcon:r,rightIcon:l,error:o,errorPlacement:p="bottom",ariaLabel:S,className:z,style:B,id:m,accessMode:q,displayStyle:y,...R},L)=>{const a=s.normalizeVariant(v),d=s.normalizeSize(w),u=s.useNiceAccessMode(q,m),x=u==="hidden";(u==="disabled"||u==="readOnly")&&(c=!0);const h=s.useComponentDisplayStyle("button",y),O=s.useComponentDisplayClass("button",y);let N=h;if(a!=="primary"){const t={...h};delete t.background,delete t.color,(a==="outline"||a==="ghost")&&(delete t.border,delete t.borderColor,delete t.borderWidth,delete t.borderStyle,delete t.boxShadow),N=t}const b=i!=null&&i!==!1&&!(typeof i=="string"&&i.trim()===""),j=!b&&!!(r||l),f=e.jsxs("button",{ref:L,type:C,id:m,className:`nice-btn nice-btn--${a} nice-btn--${d} nice-btn--ds-${O} ${j?"nice-btn--icon-only":""} ${D?"nice-btn--full-width":""} ${n?"nice-btn--loading":""} ${o&&!p?"nice-btn--has-error":""} ${z||""}`,style:{...N,...B},disabled:c||n,"aria-busy":n||void 0,"aria-disabled":c||n||void 0,"aria-label":S,onClick:k,...R,children:[n&&e.jsx("svg",{className:"nice-btn__spinner",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3","aria-hidden":"true",children:e.jsx("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"31.4 31.4",strokeLinecap:"round"})}),!n&&r&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:r}),!n&&b&&e.jsx("span",{children:i}),n&&b&&e.jsx("span",{style:{visibility:"hidden"},"aria-hidden":"true",children:i}),n&&j&&e.jsx("span",{className:"nice-btn__icon",style:{visibility:"hidden"},"aria-hidden":"true",children:r||l}),!n&&l&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:l})]});if(x)return null;if(!o)return f;const _=e.jsx("div",{className:"nice-field__error",role:"alert",children:o});return p==="right"?e.jsxs("span",{className:`nice-btn-field nice-btn-field--right nice-field--${d}`,style:{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"8px",width:"fit-content"},children:[f,_]}):x?null:e.jsxs("span",{className:`nice-btn-field nice-btn-field--bottom nice-field--${d}`,style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",width:"fit-content"},children:[f,_]})});$.displayName="NiceButton";exports.NiceButton=$;
|