@deepfuture/dui-components 0.0.15 → 0.0.16

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.
@@ -73,6 +73,7 @@ const styles = css `
73
73
 
74
74
  [part="panel"] {
75
75
  overflow: hidden;
76
+ contain: content;
76
77
  transition-property: height;
77
78
  }
78
79
  `;
package/all.d.ts CHANGED
@@ -62,6 +62,8 @@ export { DuiMenubar };
62
62
  export type { MenubarContext } from "./menubar/index.js";
63
63
  import { DuiNumberField } from "./number-field/index.js";
64
64
  export { DuiNumberField };
65
+ import { DuiStepper } from "./stepper/index.js";
66
+ export { DuiStepper };
65
67
  import { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose } from "./popover/index.js";
66
68
  export { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose, };
67
69
  export type { PopoverOpenChangeDetail, PopoverContext, PopoverSide, } from "./popover/index.js";
@@ -83,6 +85,8 @@ export { DuiSelect };
83
85
  export type { SelectOption } from "./select/index.js";
84
86
  import { DuiSeparator } from "./separator/index.js";
85
87
  export { DuiSeparator };
88
+ import { DuiSplitButton } from "./split-button/index.js";
89
+ export { DuiSplitButton };
86
90
  import { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset } from "./sidebar/index.js";
87
91
  export { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset, };
88
92
  export type { SidebarContext } from "./sidebar/index.js";
package/all.js CHANGED
@@ -71,6 +71,9 @@ export { DuiMenubar };
71
71
  // --- Number Field ---
72
72
  import { DuiNumberField } from "./number-field/index.js";
73
73
  export { DuiNumberField };
74
+ // --- Stepper ---
75
+ import { DuiStepper } from "./stepper/index.js";
76
+ export { DuiStepper };
74
77
  // --- Popover ---
75
78
  import { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose, } from "./popover/index.js";
76
79
  export { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose, };
@@ -95,6 +98,9 @@ export { DuiSelect };
95
98
  // --- Separator ---
96
99
  import { DuiSeparator } from "./separator/index.js";
97
100
  export { DuiSeparator };
101
+ // --- Split Button ---
102
+ import { DuiSplitButton } from "./split-button/index.js";
103
+ export { DuiSplitButton };
98
104
  // --- Sidebar ---
99
105
  import { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset, } from "./sidebar/index.js";
100
106
  export { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset, };
@@ -171,6 +177,7 @@ export const allComponents = [
171
177
  DuiMenuItem,
172
178
  DuiMenubar,
173
179
  DuiNumberField,
180
+ DuiStepper,
174
181
  DuiPopover,
175
182
  DuiPopoverTrigger,
176
183
  DuiPopoverPopup,
@@ -185,6 +192,7 @@ export const allComponents = [
185
192
  DuiScrollArea,
186
193
  DuiSelect,
187
194
  DuiSeparator,
195
+ DuiSplitButton,
188
196
  DuiSidebarProvider,
189
197
  DuiSidebar,
190
198
  DuiSidebarTrigger,
@@ -71,6 +71,7 @@ const styles = css `
71
71
 
72
72
  [part="panel"] {
73
73
  overflow: hidden;
74
+ contain: content;
74
75
  transition-property: height;
75
76
  }
76
77
  `;
@@ -1,3 +1,3 @@
1
- import { DuiNumberField, valueChangeEvent } from "./number-field.js";
2
- export { DuiNumberField, valueChangeEvent };
1
+ import { DuiNumberField, valueChangeEvent, valueCommittedEvent } from "./number-field.js";
2
+ export { DuiNumberField, valueChangeEvent, valueCommittedEvent };
3
3
  export declare const numberFieldFamily: (typeof DuiNumberField)[];
@@ -1,3 +1,3 @@
1
- import { DuiNumberField, valueChangeEvent } from "./number-field.js";
2
- export { DuiNumberField, valueChangeEvent };
1
+ import { DuiNumberField, valueChangeEvent, valueCommittedEvent, } from "./number-field.js";
2
+ export { DuiNumberField, valueChangeEvent, valueCommittedEvent };
3
3
  export const numberFieldFamily = [DuiNumberField];
@@ -5,14 +5,24 @@ export declare const valueChangeEvent: (detail: {
5
5
  }) => CustomEvent<{
6
6
  value: number;
7
7
  }>;
8
+ export declare const valueCommittedEvent: (detail: {
9
+ value: number;
10
+ }) => CustomEvent<{
11
+ value: number;
12
+ }>;
8
13
  /**
9
- * `<dui-number-field>` — A numeric input with increment/decrement buttons.
14
+ * `<dui-number-field>` — A numeric input with optional label, icon,
15
+ * unit suffix, drag-to-scrub behavior, and precision formatting.
16
+ *
17
+ * For simple step-up/step-down with buttons, use `<dui-stepper>` instead.
10
18
  *
11
19
  * @csspart root - The outer container.
20
+ * @csspart label - Label text element.
21
+ * @csspart icon - Icon slot wrapper.
12
22
  * @csspart input - The text input element.
13
- * @csspart decrement - The decrement button.
14
- * @csspart increment - The increment button.
23
+ * @csspart unit - Unit suffix element.
15
24
  * @fires value-change - Fired when value changes. Detail: { value: number }
25
+ * @fires value-committed - Fired on pointerup (end of drag), blur, or Enter. Detail: { value: number }
16
26
  */
17
27
  export declare class DuiNumberField extends LitElement {
18
28
  #private;
@@ -29,6 +39,17 @@ export declare class DuiNumberField extends LitElement {
29
39
  accessor readOnly: boolean;
30
40
  accessor required: boolean;
31
41
  accessor name: string | undefined;
42
+ accessor label: string;
43
+ accessor labelPosition: string;
44
+ accessor iconPosition: string;
45
+ accessor unit: string;
46
+ accessor precision: number | undefined;
47
+ accessor scrubLabel: boolean;
48
+ accessor scrubValue: boolean;
49
+ accessor scrubField: boolean;
50
+ accessor clickLabel: boolean;
51
+ accessor clickValue: boolean;
52
+ accessor clickField: boolean;
32
53
  accessor _fieldCtx: FieldContext;
33
54
  connectedCallback(): void;
34
55
  willUpdate(): void;