@youngonesworks/ui 0.1.33 → 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/favouriteButton/index.d.ts +4 -4
- package/dist/components/tabs/index.d.ts +1 -0
- 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 +48 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +48 -26
- 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", {
|
|
@@ -115936,6 +115927,21 @@ const Tab = forwardRef(({ tabId, activeTab, tabContent, clickFnc, rightSection }
|
|
|
115936
115927
|
})]
|
|
115937
115928
|
}));
|
|
115938
115929
|
|
|
115930
|
+
//#endregion
|
|
115931
|
+
//#region src/components/tabs/TabsBadge.tsx
|
|
115932
|
+
const TabsBadge = ({ children }) => {
|
|
115933
|
+
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
115934
|
+
return /* @__PURE__ */ jsx("div", {
|
|
115935
|
+
"data-testid": "tabs-badge",
|
|
115936
|
+
className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
115937
|
+
"w-5 text-center": isCircular,
|
|
115938
|
+
"px-2": !isCircular
|
|
115939
|
+
}),
|
|
115940
|
+
children
|
|
115941
|
+
});
|
|
115942
|
+
};
|
|
115943
|
+
TabsBadge.displayName = "TabsBadge";
|
|
115944
|
+
|
|
115939
115945
|
//#endregion
|
|
115940
115946
|
//#region src/components/tabs/TabsWrapper.tsx
|
|
115941
115947
|
const TabsWrapper = ({ setActiveTab, activeTab, tabs }) => {
|
|
@@ -116001,21 +116007,6 @@ const TabContent = forwardRef(({ tab, setActiveTab, activeTab }, ref) => /* @__P
|
|
|
116001
116007
|
}));
|
|
116002
116008
|
TabContent.displayName = "TabContent";
|
|
116003
116009
|
|
|
116004
|
-
//#endregion
|
|
116005
|
-
//#region src/components/tabs/TabsBadge.tsx
|
|
116006
|
-
const TabsBadge = ({ children }) => {
|
|
116007
|
-
const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
|
|
116008
|
-
return /* @__PURE__ */ jsx("div", {
|
|
116009
|
-
"data-testid": "tabs-badge",
|
|
116010
|
-
className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
|
|
116011
|
-
"w-5 text-center": isCircular,
|
|
116012
|
-
"px-2": !isCircular
|
|
116013
|
-
}),
|
|
116014
|
-
children
|
|
116015
|
-
});
|
|
116016
|
-
};
|
|
116017
|
-
TabsBadge.displayName = "TabsBadge";
|
|
116018
|
-
|
|
116019
116010
|
//#endregion
|
|
116020
116011
|
//#region src/components/textArea/index.tsx
|
|
116021
116012
|
const Textarea = forwardRef(({ className, label, error: error$1, rows = 8,...props }, ref) => /* @__PURE__ */ jsxs("div", {
|
|
@@ -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
|