@nubisco/ui 1.53.0 → 1.53.2

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.
Files changed (71) hide show
  1. package/dist/components/AiLabel.d.ts +19 -0
  2. package/dist/components/Badge.d.ts +23 -0
  3. package/dist/components/BlueprintControls.d.ts +21 -0
  4. package/dist/components/BlueprintMinimap.d.ts +17 -0
  5. package/dist/components/Board.d.ts +64 -0
  6. package/dist/components/BottomPanel.d.ts +13 -0
  7. package/dist/components/Button.d.ts +34 -0
  8. package/dist/components/Button.vue.d.ts +1 -1
  9. package/dist/components/Calendar.d.ts +32 -0
  10. package/dist/components/Charts/BarChart.d.ts +12 -0
  11. package/dist/components/Charts/GanttChart.d.ts +81 -0
  12. package/dist/components/Charts/InterpolationChart.d.ts +33 -0
  13. package/dist/components/Charts/LineChart.d.ts +15 -0
  14. package/dist/components/Charts/PieChart.d.ts +11 -0
  15. package/dist/components/Charts/Sparkline.d.ts +11 -0
  16. package/dist/components/Charts/shared/types.d.ts +53 -0
  17. package/dist/components/Checkbox.d.ts +9 -0
  18. package/dist/components/CheckboxGroup.d.ts +17 -0
  19. package/dist/components/ColorStrip.d.ts +22 -0
  20. package/dist/components/CommandPalette.d.ts +40 -0
  21. package/dist/components/DataTable.d.ts +131 -0
  22. package/dist/components/DatePicker.d.ts +52 -0
  23. package/dist/components/Field.d.ts +33 -0
  24. package/dist/components/FileUploader.d.ts +27 -0
  25. package/dist/components/FileUploader.vue.d.ts +1 -1
  26. package/dist/components/Flag.d.ts +9 -0
  27. package/dist/components/Form.d.ts +5 -0
  28. package/dist/components/Grid.d.ts +345 -0
  29. package/dist/components/Icon.d.ts +59 -0
  30. package/dist/components/Icon.vue.d.ts +1 -1
  31. package/dist/components/ImageCropper.d.ts +27 -0
  32. package/dist/components/JsonTree.d.ts +33 -0
  33. package/dist/components/Label.d.ts +14 -0
  34. package/dist/components/Menu.d.ts +53 -0
  35. package/dist/components/Message.d.ts +17 -0
  36. package/dist/components/Modal.d.ts +10 -0
  37. package/dist/components/Modal.vue.d.ts +1 -1
  38. package/dist/components/NumberInput.vue.d.ts +1 -1
  39. package/dist/components/Pagination.d.ts +38 -0
  40. package/dist/components/Pagination.vue.d.ts +1 -1
  41. package/dist/components/ProgressBar.d.ts +27 -0
  42. package/dist/components/Radio.d.ts +28 -0
  43. package/dist/components/Select.d.ts +23 -0
  44. package/dist/components/Shell.d.ts +60 -0
  45. package/dist/components/ShellPanel.d.ts +33 -0
  46. package/dist/components/SidebarBrand.d.ts +14 -0
  47. package/dist/components/SidebarLink.d.ts +24 -0
  48. package/dist/components/SidebarMenu.d.ts +10 -0
  49. package/dist/components/SidebarMenuGroup.d.ts +16 -0
  50. package/dist/components/SidebarMenuItem.d.ts +42 -0
  51. package/dist/components/Slider.d.ts +26 -0
  52. package/dist/components/Switch.d.ts +20 -0
  53. package/dist/components/TextInput.vue.d.ts +1 -1
  54. package/dist/components/Tree.d.ts +68 -0
  55. package/dist/components/TreeNode.vue.d.ts.map +1 -1
  56. package/dist/components/UserMenu.d.ts +43 -0
  57. package/dist/components/labs/Spreadsheet.d.ts +104 -0
  58. package/dist/directives/ToolTip.directive.d.ts +1 -1
  59. package/dist/global.d.ts +135 -0
  60. package/dist/index.cjs +1 -1
  61. package/dist/index.cjs.map +1 -1
  62. package/dist/index.mjs +1 -1
  63. package/dist/index.mjs.map +1 -1
  64. package/dist/types/Decoration.d.ts +6 -0
  65. package/dist/types/Option.d.ts +29 -0
  66. package/dist/types/Props.d.ts +121 -0
  67. package/dist/types/Size.d.ts +33 -0
  68. package/dist/types/Variants.d.ts +12 -0
  69. package/dist/types/Vite.d.ts +3 -0
  70. package/dist/ui.css +1 -1
  71. package/package.json +6 -3
@@ -0,0 +1,6 @@
1
+ interface IDecoration {
2
+ decorationType?: string
3
+ decorationProps?: Record<string, any>
4
+ }
5
+
6
+ export { IDecoration }
@@ -0,0 +1,29 @@
1
+ import { IDecoration } from './Decoration'
2
+
3
+ // #region IOption
4
+ interface IOption extends IDecoration {
5
+ id?: number | string
6
+ label?: string
7
+ name?: string
8
+ value?: string | number
9
+ color?: string
10
+ context?: string
11
+ i18n_key?: string
12
+ createdBy?: number | string
13
+ createdAt?: string
14
+ disabled?: boolean
15
+ tooltip?: string
16
+ unformatted?: boolean
17
+ code?: string
18
+ hidden?: boolean
19
+ }
20
+ // #endregion IOption
21
+
22
+ // #region IOptionGroup
23
+ interface IOptionGroup {
24
+ groupName?: string // Optional: Name of the group
25
+ options: IOption[]
26
+ }
27
+ // #endregion IOptionGroup
28
+
29
+ export { IOption, IOptionGroup }
@@ -0,0 +1,121 @@
1
+ /**
2
+ * Shared prop interfaces for Nubisco UI components.
3
+ *
4
+ * Hierarchy:
5
+ *
6
+ * IDefaultProps
7
+ * └── IHumanInputComponent
8
+ * └── IFieldComponent (+ IWithLabel + IWithMessages + IWithFieldAppearance)
9
+ * └── IReadableFieldComponent
10
+ *
11
+ * Compose these interfaces in component `.d.ts` files rather than redeclaring
12
+ * common props. This keeps definitions DRY and feeds intellisense with the
13
+ * JSDoc descriptions below.
14
+ */
15
+
16
+ // #region IDefaultProps
17
+ /** Any component that can be identified by an explicit DOM id. */
18
+ interface IDefaultProps {
19
+ /**
20
+ * Explicit element id.
21
+ * When omitted, a deterministic id is auto-generated by `useStableId()` from the
22
+ * component type and `name` prop — e.g. `nb-text-input-email`.
23
+ */
24
+ id?: string
25
+ }
26
+ // #endregion IDefaultProps
27
+
28
+ // #region IWithMessages
29
+ /** Components that carry validation / feedback messages below the field. */
30
+ interface IWithMessages {
31
+ /** Validation error — takes precedence over `warning` and `helper` when set. */
32
+ error?: string
33
+ /** Non-blocking caution message — shown only when `error` is absent. */
34
+ warning?: string
35
+ /** Contextual hint displayed when neither `error` nor `warning` is set. */
36
+ helper?: string
37
+ }
38
+ // #endregion IWithMessages
39
+
40
+ // #region IWithLabel
41
+ /** Components that render a user-visible label. */
42
+ interface IWithLabel {
43
+ /** Label text rendered above (`default` variant) or inside (`fluid` variant) the field. */
44
+ label?: string
45
+ }
46
+ // #endregion IWithLabel
47
+
48
+ // #region IWithFieldAppearance
49
+ /** Components that support the standard field presentation variants and sizes. */
50
+ interface IWithFieldAppearance {
51
+ /**
52
+ * Presentation variant:
53
+ * - `default` — label above, message below (standard style).
54
+ * - `fluid` — label and status icon inside the field box.
55
+ */
56
+ variant?: 'default' | 'fluid'
57
+ /**
58
+ * Control size. `xs` is the compact size for dense surfaces (inspectors,
59
+ * toolbars); `md` is the baseline for standalone forms. Every value here
60
+ * is backed by a real style rule — an unknown size no longer falls back
61
+ * silently.
62
+ */
63
+ size?: 'xs' | 'sm' | 'md' | 'lg'
64
+ }
65
+ // #endregion IWithFieldAppearance
66
+
67
+ // #region IHumanInputComponent
68
+ /**
69
+ * Interactive form control that participates in form submission and can be
70
+ * disabled or marked as required.
71
+ */
72
+ interface IHumanInputComponent extends IDefaultProps {
73
+ /**
74
+ * HTML `name` attribute forwarded to the native input.
75
+ * Also drives auto-generated IDs when `id` is omitted:
76
+ * `{component-type}-{name}` — e.g. `nb-select-country`.
77
+ */
78
+ name?: string
79
+ /** Prevents interaction and visually dims the control. */
80
+ disabled?: boolean
81
+ /** Marks the field as mandatory — surfaced in the label and `aria-required`. */
82
+ required?: boolean
83
+ }
84
+ // #endregion IHumanInputComponent
85
+
86
+ // #region IFieldComponent
87
+ /**
88
+ * Full labeled field with placeholder text, validation messages, variant and
89
+ * size. The baseline for text-like, number, and select inputs.
90
+ */
91
+ interface IFieldComponent
92
+ extends
93
+ IHumanInputComponent,
94
+ IWithLabel,
95
+ IWithMessages,
96
+ IWithFieldAppearance {
97
+ /** Placeholder text shown when the field has no value. */
98
+ placeholder?: string
99
+ }
100
+ // #endregion IFieldComponent
101
+
102
+ // #region IReadableFieldComponent
103
+ /**
104
+ * Extends `IFieldComponent` with a read-only mode: the value is visible and
105
+ * copyable but cannot be changed by the user.
106
+ */
107
+ interface IReadableFieldComponent extends IFieldComponent {
108
+ /** Makes the field read-only — value is visible but not editable. */
109
+ readonly?: boolean
110
+ }
111
+ // #endregion IReadableFieldComponent
112
+
113
+ export {
114
+ IDefaultProps,
115
+ IWithMessages,
116
+ IWithLabel,
117
+ IWithFieldAppearance,
118
+ IHumanInputComponent,
119
+ IFieldComponent,
120
+ IReadableFieldComponent,
121
+ }
@@ -0,0 +1,33 @@
1
+ // #region ESize
2
+ // String-based size tokens (for CSS classes, spacing scales, etc.)
3
+ export enum ESize {
4
+ ExtraExtraSmall = 'xxs',
5
+ ExtraSmall = 'xs',
6
+ Small = 'sm',
7
+ Medium = 'md',
8
+ Large = 'lg',
9
+ ExtraLarge = 'xl',
10
+ ExtraExtraLarge = 'xxl',
11
+ }
12
+ // #endregion ESize
13
+
14
+ // #region ESizeShort
15
+ export enum ESizeShort {
16
+ Small = 'sm',
17
+ Medium = 'md',
18
+ Large = 'lg',
19
+ }
20
+ // #endregion ESizeShort
21
+
22
+ // #region ESizePixel
23
+ // Numeric size values in pixels (for icons, images, components with fixed dimensions)
24
+ export enum ESizePixel {
25
+ ExtraExtraSmall = 8,
26
+ ExtraSmall = 12,
27
+ Small = 14,
28
+ Medium = 16,
29
+ Large = 20,
30
+ ExtraLarge = 60,
31
+ ExtraExtraLarge = 92,
32
+ }
33
+ // #endregion ESizePixel
@@ -0,0 +1,12 @@
1
+ // #region EVariant
2
+ enum EVariant {
3
+ Primary = 'primary',
4
+ Secondary = 'secondary',
5
+ Ghost = 'ghost',
6
+ Danger = 'danger',
7
+ Success = 'success',
8
+ Warning = 'warning',
9
+ }
10
+ // #endregion EVariant
11
+
12
+ export { EVariant }
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vite'
2
+
3
+ export const VitePlugin = <T extends Plugin>(p: T): Plugin & T => p