@youngonesworks/ui 0.1.34 → 0.1.35
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/components/breadCrumb/index.d.ts +6 -2
- package/dist/components/timeInput/TimeInput.stories.d.ts +17 -0
- package/dist/components/timeInput/TimeInput.test.d.ts +1 -0
- package/dist/components/timeInput/index.d.ts +8 -0
- package/dist/index.cjs +33 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +33 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/linkText/LinkText.stories.d.ts +0 -6
- package/dist/components/linkText/index.d.ts +0 -11
- package/dist/components/phoneInput/index.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,6 @@ export { HamburgerMenuButton } from './components/hamburgerMenuButton';
|
|
|
20
20
|
export { HR } from './components/hr';
|
|
21
21
|
export { Island } from './components/island';
|
|
22
22
|
export { Label } from './components/label';
|
|
23
|
-
export { LinkText } from './components/linkText';
|
|
24
23
|
export { Loader } from './components/loader';
|
|
25
24
|
export { LogoBlack } from './components/logo';
|
|
26
25
|
export { Modal } from './components/modal';
|
|
@@ -53,6 +52,7 @@ export { TabsBadge } from './components/tabs/TabsBadge';
|
|
|
53
52
|
export { Textarea } from './components/textArea';
|
|
54
53
|
export { TextInput } from './components/textInput';
|
|
55
54
|
export { ThemeIcon } from './components/themeIcon';
|
|
55
|
+
export { TimeInput } from './components/timeInput';
|
|
56
56
|
export { Toggle } from './components/toggle';
|
|
57
57
|
export { Tooltip } from './components/tooltip';
|
|
58
58
|
export { TruncatedText } from './components/truncatedText';
|
package/dist/index.js
CHANGED
|
@@ -103309,18 +103309,9 @@ const BigBadge = ({ styleVariant = COLOR.GREEN, className, children,...props })
|
|
|
103309
103309
|
children
|
|
103310
103310
|
});
|
|
103311
103311
|
|
|
103312
|
-
//#endregion
|
|
103313
|
-
//#region src/components/linkText/index.tsx
|
|
103314
|
-
/** @deprecated dont use this anymore, instead use the next link */
|
|
103315
|
-
const LinkText = ({ children, classNames: classNames$1 }) => /* @__PURE__ */ jsx("span", {
|
|
103316
|
-
className: classNames$1,
|
|
103317
|
-
children
|
|
103318
|
-
});
|
|
103319
|
-
LinkText.displayName = "LinkText";
|
|
103320
|
-
|
|
103321
103312
|
//#endregion
|
|
103322
103313
|
//#region src/components/breadCrumb/index.tsx
|
|
103323
|
-
const BreadCrumb = ({ children }) => /* @__PURE__ */ jsx(LinkText, {
|
|
103314
|
+
const BreadCrumb = ({ children, LinkText }) => /* @__PURE__ */ jsx(LinkText, {
|
|
103324
103315
|
"data-component": "BreadCrumb",
|
|
103325
103316
|
classNames: "flex items-center",
|
|
103326
103317
|
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(IconArrowNarrowLeft, { size: 20 }), /* @__PURE__ */ jsx("span", {
|
|
@@ -116066,6 +116057,37 @@ function ThemeIcon({ styleVariant = "black", className, icon, adjustedSize, titl
|
|
|
116066
116057
|
}), /* @__PURE__ */ jsx(M, { id: title })] });
|
|
116067
116058
|
}
|
|
116068
116059
|
|
|
116060
|
+
//#endregion
|
|
116061
|
+
//#region src/components/timeInput/index.tsx
|
|
116062
|
+
const TimeInput = forwardRef(({ label, error: error$1, withSeconds, className = "",...props }, ref) => {
|
|
116063
|
+
const handleTimeChange = (e$1) => {
|
|
116064
|
+
if (props.onChange) props.onChange(e$1);
|
|
116065
|
+
};
|
|
116066
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
116067
|
+
className: "leading-none",
|
|
116068
|
+
"data-component": "timeInput",
|
|
116069
|
+
children: [
|
|
116070
|
+
label && /* @__PURE__ */ jsx("label", {
|
|
116071
|
+
className: "mb-2 block text-xs font-medium",
|
|
116072
|
+
htmlFor: props.id,
|
|
116073
|
+
children: label
|
|
116074
|
+
}),
|
|
116075
|
+
/* @__PURE__ */ jsx("input", {
|
|
116076
|
+
...props,
|
|
116077
|
+
ref,
|
|
116078
|
+
type: "time",
|
|
116079
|
+
step: withSeconds ? "1" : "60",
|
|
116080
|
+
onChange: handleTimeChange,
|
|
116081
|
+
className: `bg-ultra-light-gray focus:border-primary flex h-10 min-h-[36px] w-full items-center rounded-[5px] border border-solid border-gray-200 px-3 text-sm font-normal focus:outline-hidden ${error$1 ? "border-red-500" : ""} ${className}`
|
|
116082
|
+
}),
|
|
116083
|
+
error$1 && /* @__PURE__ */ jsx("p", {
|
|
116084
|
+
className: "pt-2 text-xs font-normal text-red-500",
|
|
116085
|
+
children: error$1
|
|
116086
|
+
})
|
|
116087
|
+
]
|
|
116088
|
+
});
|
|
116089
|
+
});
|
|
116090
|
+
|
|
116069
116091
|
//#endregion
|
|
116070
116092
|
//#region src/components/toggle/index.tsx
|
|
116071
116093
|
const Toggle = ({ onClick, value, disabled = false }) => {
|
|
@@ -140424,5 +140446,5 @@ const setCSSVariable = (variable, value) => {
|
|
|
140424
140446
|
};
|
|
140425
140447
|
|
|
140426
140448
|
//#endregion
|
|
140427
|
-
export { AccordionItem, AccordionWrapper, ActionIcon, Alert, AppleAppButtonIcon, AutoCompleteInput, Avatar, AvatarIndicator, Badge, BigBadge, BreadCrumb, Button, CSS_VARIABLE_KEYS, Checkbox, Divider, FavouriteButton, Filters, GoogleAppButtonIcon, HR, HamburgerMenuButton, Island, Label,
|
|
140449
|
+
export { AccordionItem, AccordionWrapper, ActionIcon, Alert, AppleAppButtonIcon, AutoCompleteInput, Avatar, AvatarIndicator, Badge, BigBadge, BreadCrumb, Button, CSS_VARIABLE_KEYS, Checkbox, Divider, FavouriteButton, Filters, GoogleAppButtonIcon, HR, HamburgerMenuButton, Island, Label, Loader, LogoBlack, Modal, NavButtons, NumberField, NumberedStepper, PageUnavailable, PasswordInput, Popover, ProgressBar, RadioButton, Rating, RegionSelector, Reviews, ScrollToTop, SearchInput, Select, SettingsCard, Skeleton, SkillPill, Stepper, StickyMobileButtonWrapper, Table, TableCell, TableHeader, TableHeaderItem, TableHeaderRow, TableRow, TabsBadge, TabsWrapper, TextInput, Textarea, ThemeIcon, TimeInput, Toggle, Tooltip, TruncatedText, UnorderedList, UnorderedListItem, UnstyledButton, WysiwygEditor, buttonVariants, getCSSVariable, setCSSVariable };
|
|
140428
140450
|
//# sourceMappingURL=index.js.map
|