@domphy/ui 0.18.1 → 0.18.3

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/dist/index.d.cts CHANGED
@@ -602,6 +602,21 @@ declare function inputNumber(props?: {
602
602
  accentColor?: ValueOrState<ThemeColor>;
603
603
  }): PartialElement;
604
604
 
605
+ /**
606
+ * Password input wrapper: a styled `<div>` that inserts an `<input type="password">`
607
+ * and a show/hide toggle button. The outer div carries the focus-ring outline via
608
+ * `:focus-within`. Apply to an empty `<div>`.
609
+ *
610
+ * @hostTag div
611
+ * @param props.color - Base color tone for border/background/text. Defaults to `"neutral"`.
612
+ * @param props.accentColor - Accent outline color on focus-within. Defaults to `"primary"`.
613
+ * @example { div: null, $: [inputPassword()] }
614
+ */
615
+ declare function inputPassword(props?: {
616
+ color?: ValueOrState<ThemeColor>;
617
+ accentColor?: ValueOrState<ThemeColor>;
618
+ }): PartialElement;
619
+
605
620
  /**
606
621
  * Lays out a one-time-password container as a horizontal row of inputs and
607
622
  * wires keyboard navigation: auto-advance on input, backspace/arrow movement,
@@ -1003,6 +1018,42 @@ declare function rating(props?: {
1003
1018
  color?: ThemeColor;
1004
1019
  }): PartialElement;
1005
1020
 
1021
+ /**
1022
+ * Circular ring progress indicator rendered via CSS `conic-gradient` and a
1023
+ * circular `mask`. Progress starts at 12 o'clock and advances clockwise.
1024
+ * Exposes `role="progressbar"` with `aria-valuenow/min/max`. Apply to a `<div>`.
1025
+ *
1026
+ * @hostTag div
1027
+ * @param props.value - Progress percentage 0–100. Accepts a value or reactive state. Defaults to `0`.
1028
+ * @param props.color - Theme color for the filled arc. Accepts a value or reactive state. Defaults to `"primary"`.
1029
+ * @param props.trackColor - Theme color for the background track. Accepts a value or reactive state. Defaults to `"neutral"`.
1030
+ * @param props.size - Diameter in `themeSpacing` units. Defaults to `16` (= `4em`).
1031
+ * @param props.thickness - Ring stroke as a fraction of the radius (0–0.5). Defaults to `0.25`.
1032
+ * @example { div: null, $: [ringProgress({ value: 65 })] }
1033
+ * @example { div: null, $: [ringProgress({ value: loadingState, color: "success", size: 20 })] }
1034
+ */
1035
+ declare function ringProgress(props?: {
1036
+ value?: ValueOrState<number>;
1037
+ color?: ValueOrState<ThemeColor>;
1038
+ trackColor?: ValueOrState<ThemeColor>;
1039
+ size?: number;
1040
+ thickness?: number;
1041
+ }): PartialElement;
1042
+
1043
+ /**
1044
+ * Applies thin, themed overlay scrollbars to any scrollable container.
1045
+ * Covers WebKit (Chrome/Safari/Edge) via `::-webkit-scrollbar` pseudo-elements
1046
+ * and Firefox via `scrollbar-width`/`scrollbar-color`. Sets `overflow: auto`.
1047
+ * No host-tag check; apply to any block element.
1048
+ *
1049
+ * @param props.color - Theme color for the scrollbar thumb. Accepts a value or
1050
+ * reactive state. Defaults to `"neutral"`.
1051
+ * @example { div: [...], style: { maxHeight: "300px" }, $: [scrollArea()] }
1052
+ */
1053
+ declare function scrollArea(props?: {
1054
+ color?: ValueOrState<ThemeColor>;
1055
+ }): PartialElement;
1056
+
1006
1057
  /**
1007
1058
  * Container patch that establishes a `segmented` context for single-select navigation.
1008
1059
  * Style: inline pill-shaped control with muted background. Use with `segmentedItem` patches on child `<button>` elements.
@@ -1469,4 +1520,4 @@ declare function unorderedList(props?: {
1469
1520
  color?: ValueOrState<ThemeColor>;
1470
1521
  }): PartialElement;
1471
1522
 
1472
- export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonGhost, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, datePicker, descriptionList, details, dialog, divider, drawer, emphasis, empty, errorBoundary, fab, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, list, listItem, listItemButton, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, rating, segmented, segmentedItem, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, stepItem, steps, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, timeline, timelineItem, toast, toggle, toggleGroup, toolbar, toolbarSpacer, tooltip, transitionGroup, unorderedList };
1523
+ export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonGhost, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, datePicker, descriptionList, details, dialog, divider, drawer, emphasis, empty, errorBoundary, fab, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputPassword, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, list, listItem, listItemButton, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, rating, ringProgress, scrollArea, segmented, segmentedItem, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, stepItem, steps, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, timeline, timelineItem, toast, toggle, toggleGroup, toolbar, toolbarSpacer, tooltip, transitionGroup, unorderedList };
package/dist/index.d.ts CHANGED
@@ -602,6 +602,21 @@ declare function inputNumber(props?: {
602
602
  accentColor?: ValueOrState<ThemeColor>;
603
603
  }): PartialElement;
604
604
 
605
+ /**
606
+ * Password input wrapper: a styled `<div>` that inserts an `<input type="password">`
607
+ * and a show/hide toggle button. The outer div carries the focus-ring outline via
608
+ * `:focus-within`. Apply to an empty `<div>`.
609
+ *
610
+ * @hostTag div
611
+ * @param props.color - Base color tone for border/background/text. Defaults to `"neutral"`.
612
+ * @param props.accentColor - Accent outline color on focus-within. Defaults to `"primary"`.
613
+ * @example { div: null, $: [inputPassword()] }
614
+ */
615
+ declare function inputPassword(props?: {
616
+ color?: ValueOrState<ThemeColor>;
617
+ accentColor?: ValueOrState<ThemeColor>;
618
+ }): PartialElement;
619
+
605
620
  /**
606
621
  * Lays out a one-time-password container as a horizontal row of inputs and
607
622
  * wires keyboard navigation: auto-advance on input, backspace/arrow movement,
@@ -1003,6 +1018,42 @@ declare function rating(props?: {
1003
1018
  color?: ThemeColor;
1004
1019
  }): PartialElement;
1005
1020
 
1021
+ /**
1022
+ * Circular ring progress indicator rendered via CSS `conic-gradient` and a
1023
+ * circular `mask`. Progress starts at 12 o'clock and advances clockwise.
1024
+ * Exposes `role="progressbar"` with `aria-valuenow/min/max`. Apply to a `<div>`.
1025
+ *
1026
+ * @hostTag div
1027
+ * @param props.value - Progress percentage 0–100. Accepts a value or reactive state. Defaults to `0`.
1028
+ * @param props.color - Theme color for the filled arc. Accepts a value or reactive state. Defaults to `"primary"`.
1029
+ * @param props.trackColor - Theme color for the background track. Accepts a value or reactive state. Defaults to `"neutral"`.
1030
+ * @param props.size - Diameter in `themeSpacing` units. Defaults to `16` (= `4em`).
1031
+ * @param props.thickness - Ring stroke as a fraction of the radius (0–0.5). Defaults to `0.25`.
1032
+ * @example { div: null, $: [ringProgress({ value: 65 })] }
1033
+ * @example { div: null, $: [ringProgress({ value: loadingState, color: "success", size: 20 })] }
1034
+ */
1035
+ declare function ringProgress(props?: {
1036
+ value?: ValueOrState<number>;
1037
+ color?: ValueOrState<ThemeColor>;
1038
+ trackColor?: ValueOrState<ThemeColor>;
1039
+ size?: number;
1040
+ thickness?: number;
1041
+ }): PartialElement;
1042
+
1043
+ /**
1044
+ * Applies thin, themed overlay scrollbars to any scrollable container.
1045
+ * Covers WebKit (Chrome/Safari/Edge) via `::-webkit-scrollbar` pseudo-elements
1046
+ * and Firefox via `scrollbar-width`/`scrollbar-color`. Sets `overflow: auto`.
1047
+ * No host-tag check; apply to any block element.
1048
+ *
1049
+ * @param props.color - Theme color for the scrollbar thumb. Accepts a value or
1050
+ * reactive state. Defaults to `"neutral"`.
1051
+ * @example { div: [...], style: { maxHeight: "300px" }, $: [scrollArea()] }
1052
+ */
1053
+ declare function scrollArea(props?: {
1054
+ color?: ValueOrState<ThemeColor>;
1055
+ }): PartialElement;
1056
+
1006
1057
  /**
1007
1058
  * Container patch that establishes a `segmented` context for single-select navigation.
1008
1059
  * Style: inline pill-shaped control with muted background. Use with `segmentedItem` patches on child `<button>` elements.
@@ -1469,4 +1520,4 @@ declare function unorderedList(props?: {
1469
1520
  color?: ValueOrState<ThemeColor>;
1470
1521
  }): PartialElement;
1471
1522
 
1472
- export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonGhost, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, datePicker, descriptionList, details, dialog, divider, drawer, emphasis, empty, errorBoundary, fab, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, list, listItem, listItemButton, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, rating, segmented, segmentedItem, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, stepItem, steps, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, timeline, timelineItem, toast, toggle, toggleGroup, toolbar, toolbarSpacer, tooltip, transitionGroup, unorderedList };
1523
+ export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, buttonGhost, buttonSwitch, card, code, combobox, command, commandItem, commandSearch, datePicker, descriptionList, details, dialog, divider, drawer, emphasis, empty, errorBoundary, fab, figure, formGroup, heading, horizontalRule, icon, image, inputCheckbox, inputColor, inputDateTime, inputFile, inputNumber, inputOTP, inputPassword, inputRadio, inputRange, inputSearch, inputSwitch, inputText, keyboard, label, link, list, listItem, listItemButton, mark, menu, menuItem, motion, orderedList, pagination, paragraph, popover, popoverArrow, preformated, progress, rating, ringProgress, scrollArea, segmented, segmentedItem, select, selectBox, selectItem, selectList, skeleton, small, spinner, splitter, splitterHandle, splitterPanel, stepItem, steps, strong, subscript, superscript, tab, tabPanel, table, tabs, tag, textarea, timeline, timelineItem, toast, toggle, toggleGroup, toolbar, toolbarSpacer, tooltip, transitionGroup, unorderedList };