@proyecto-viviana/ui 0.1.0 → 0.1.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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
- package/src/alert/index.tsx +48 -0
- package/src/assets/favicon.png +0 -0
- package/src/assets/fire.gif +0 -0
- package/src/avatar/index.tsx +75 -0
- package/src/badge/index.tsx +43 -0
- package/src/button/Button.tsx +75 -0
- package/src/button/index.ts +2 -0
- package/src/button/types.ts +24 -0
- package/src/checkbox/index.tsx +258 -0
- package/src/components.css +975 -0
- package/src/custom/calendar-card/index.tsx +66 -0
- package/src/custom/chip/index.tsx +32 -0
- package/src/custom/conversation/index.tsx +105 -0
- package/src/custom/event-card/index.tsx +126 -0
- package/src/custom/lateral-nav/index.tsx +88 -0
- package/src/custom/logo/index.tsx +54 -0
- package/src/custom/nav-header/index.tsx +42 -0
- package/src/custom/page-layout/index.tsx +20 -0
- package/src/custom/profile-card/index.tsx +58 -0
- package/src/custom/project-card/index.tsx +59 -0
- package/src/custom/timeline-item/index.tsx +81 -0
- package/src/dialog/index.tsx +69 -0
- package/src/icon/icons/GitHubIcon.tsx +20 -0
- package/src/icon/index.tsx +48 -0
- package/src/index.ts +107 -0
- package/src/link/index.tsx +131 -0
- package/src/progress-bar/index.tsx +169 -0
- package/src/radio/index.tsx +219 -0
- package/src/separator/index.tsx +141 -0
- package/src/styles.css +450 -0
- package/src/switch/ToggleSwitch.tsx +113 -0
- package/src/switch/index.tsx +90 -0
- package/src/test-utils/index.ts +32 -0
- package/src/textfield/index.tsx +211 -0
- package/src/theme.css +101 -0
- package/src/tooltip/index.tsx +31 -0
package/dist/index.js
CHANGED
|
@@ -784,6 +784,7 @@ function Tooltip(props) {
|
|
|
784
784
|
function access(value) {
|
|
785
785
|
return typeof value === "function" ? value() : value;
|
|
786
786
|
}
|
|
787
|
+
|
|
787
788
|
function createTextFieldState(props = {}) {
|
|
788
789
|
const getProps = () => access(props);
|
|
789
790
|
const initialProps = getProps();
|
|
@@ -795,12 +796,11 @@ function createTextFieldState(props = {}) {
|
|
|
795
796
|
return isControlled() ? p.value ?? "" : internalValue();
|
|
796
797
|
};
|
|
797
798
|
function setValue(newValue) {
|
|
798
|
-
var _a;
|
|
799
799
|
const p = getProps();
|
|
800
800
|
if (!isControlled()) {
|
|
801
801
|
setInternalValue(newValue);
|
|
802
802
|
}
|
|
803
|
-
|
|
803
|
+
p.onChange?.(newValue);
|
|
804
804
|
}
|
|
805
805
|
return {
|
|
806
806
|
value,
|