@domphy/ui 0.17.0 → 0.18.0
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/core-theme-ui.global.js +4 -4
- package/dist/core-theme-ui.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -123,6 +123,20 @@ declare function button(props?: {
|
|
|
123
123
|
color?: ValueOrState<ThemeColor>;
|
|
124
124
|
}): PartialElement;
|
|
125
125
|
|
|
126
|
+
/**
|
|
127
|
+
* A transparent button with no border or background — suitable for icon
|
|
128
|
+
* actions, inline controls, and delete/close triggers. Apply to a `<button>`
|
|
129
|
+
* element.
|
|
130
|
+
*
|
|
131
|
+
* @hostTag button
|
|
132
|
+
* @param props.color - Text color tone. Optional `ValueOrState<ThemeColor>`, defaults to `"neutral"`.
|
|
133
|
+
* @example { button: "×", $: [buttonGhost()] }
|
|
134
|
+
* @example { button: { span: null, $: [icon({ name: "trash" })] }, $: [buttonGhost({ color: "error" })] }
|
|
135
|
+
*/
|
|
136
|
+
declare function buttonGhost(props?: {
|
|
137
|
+
color?: ValueOrState<ThemeColor>;
|
|
138
|
+
}): PartialElement;
|
|
139
|
+
|
|
126
140
|
/**
|
|
127
141
|
* A pill-shaped toggle switch with `role="switch"`; clicking flips the bound
|
|
128
142
|
* `checked` state and slides the thumb. Apply to a `<button>` element.
|
|
@@ -535,7 +549,7 @@ declare function inputCheckbox(props?: {
|
|
|
535
549
|
* @param props.accentColor - Optional theme color tone (`ValueOrState<ThemeColor>`). Defaults to `"primary"`.
|
|
536
550
|
* @example { input: null, type: "color", $: [inputColor()] }
|
|
537
551
|
*/
|
|
538
|
-
declare function inputColor(
|
|
552
|
+
declare function inputColor(_props?: {
|
|
539
553
|
color?: ValueOrState<ThemeColor>;
|
|
540
554
|
accentColor?: ValueOrState<ThemeColor>;
|
|
541
555
|
}): PartialElement;
|
|
@@ -725,7 +739,7 @@ declare function link(props?: {
|
|
|
725
739
|
* @param props.color - Surface color tone. Optional `ThemeColor`, defaults to `"neutral"`.
|
|
726
740
|
* @example { ul: [...], $: [list()] }
|
|
727
741
|
*/
|
|
728
|
-
declare function list(
|
|
742
|
+
declare function list(_props?: {
|
|
729
743
|
color?: ThemeColor;
|
|
730
744
|
}): PartialElement;
|
|
731
745
|
/**
|
|
@@ -1455,4 +1469,4 @@ declare function unorderedList(props?: {
|
|
|
1455
1469
|
color?: ValueOrState<ThemeColor>;
|
|
1456
1470
|
}): PartialElement;
|
|
1457
1471
|
|
|
1458
|
-
export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -123,6 +123,20 @@ declare function button(props?: {
|
|
|
123
123
|
color?: ValueOrState<ThemeColor>;
|
|
124
124
|
}): PartialElement;
|
|
125
125
|
|
|
126
|
+
/**
|
|
127
|
+
* A transparent button with no border or background — suitable for icon
|
|
128
|
+
* actions, inline controls, and delete/close triggers. Apply to a `<button>`
|
|
129
|
+
* element.
|
|
130
|
+
*
|
|
131
|
+
* @hostTag button
|
|
132
|
+
* @param props.color - Text color tone. Optional `ValueOrState<ThemeColor>`, defaults to `"neutral"`.
|
|
133
|
+
* @example { button: "×", $: [buttonGhost()] }
|
|
134
|
+
* @example { button: { span: null, $: [icon({ name: "trash" })] }, $: [buttonGhost({ color: "error" })] }
|
|
135
|
+
*/
|
|
136
|
+
declare function buttonGhost(props?: {
|
|
137
|
+
color?: ValueOrState<ThemeColor>;
|
|
138
|
+
}): PartialElement;
|
|
139
|
+
|
|
126
140
|
/**
|
|
127
141
|
* A pill-shaped toggle switch with `role="switch"`; clicking flips the bound
|
|
128
142
|
* `checked` state and slides the thumb. Apply to a `<button>` element.
|
|
@@ -535,7 +549,7 @@ declare function inputCheckbox(props?: {
|
|
|
535
549
|
* @param props.accentColor - Optional theme color tone (`ValueOrState<ThemeColor>`). Defaults to `"primary"`.
|
|
536
550
|
* @example { input: null, type: "color", $: [inputColor()] }
|
|
537
551
|
*/
|
|
538
|
-
declare function inputColor(
|
|
552
|
+
declare function inputColor(_props?: {
|
|
539
553
|
color?: ValueOrState<ThemeColor>;
|
|
540
554
|
accentColor?: ValueOrState<ThemeColor>;
|
|
541
555
|
}): PartialElement;
|
|
@@ -725,7 +739,7 @@ declare function link(props?: {
|
|
|
725
739
|
* @param props.color - Surface color tone. Optional `ThemeColor`, defaults to `"neutral"`.
|
|
726
740
|
* @example { ul: [...], $: [list()] }
|
|
727
741
|
*/
|
|
728
|
-
declare function list(
|
|
742
|
+
declare function list(_props?: {
|
|
729
743
|
color?: ThemeColor;
|
|
730
744
|
}): PartialElement;
|
|
731
745
|
/**
|
|
@@ -1455,4 +1469,4 @@ declare function unorderedList(props?: {
|
|
|
1455
1469
|
color?: ValueOrState<ThemeColor>;
|
|
1456
1470
|
}): PartialElement;
|
|
1457
1471
|
|
|
1458
|
-
export { type DatePickerProps, type DatePickerValue, type MotionKeyframe, type MotionProps, abbreviation, accordion, alert, avatar, badge, blockquote, breadcrumb, breadcrumbEllipsis, button, 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 };
|
|
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 };
|