@asdp/ferryui 0.1.22-dev.9630 → 0.1.22-dev.9698
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.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyles, tokens, createLightTheme, createDarkTheme, shorthands, Popover, PopoverTrigger, Input, PopoverSurface, Field, Caption1Strong, Caption2, Button, Body1, Body1Strong, Caption1, Dialog, DialogSurface, DialogBody, DialogTitle, DialogTrigger, DialogContent, Carousel, CarouselButton, CarouselViewport, mergeClasses, CarouselSlider, CarouselNav, CarouselNavButton, CarouselCard, Skeleton, SkeletonItem, Subtitle2, Card, Tooltip, Badge, Title2, Divider, Title3, Label, Text, Subtitle1, Checkbox, MessageBar, MessageBarBody, Accordion, AccordionItem, AccordionHeader, AccordionPanel, RadioGroup, Menu, MenuTrigger, MenuPopover, MenuList, Radio, DialogActions, Caption2Strong, Body2, Body1Stronger, Caption1Stronger, Display, Image, Title1, TabList, Tab, typographyStyles, Switch, Textarea, Link } from '@fluentui/react-components';
|
|
1
|
+
import { makeStyles, tokens, createLightTheme, createDarkTheme, shorthands, Popover, PopoverTrigger, Input, PopoverSurface, Field, Caption1Strong, Caption2, Button, InfoLabel, Body1, Body1Strong, Caption1, Dialog, DialogSurface, DialogBody, DialogTitle, DialogTrigger, DialogContent, Carousel, CarouselButton, CarouselViewport, mergeClasses, CarouselSlider, CarouselNav, CarouselNavButton, CarouselCard, Skeleton, SkeletonItem, Subtitle2, Card, Tooltip, Badge, Title2, Divider, Title3, Label, Text, Subtitle1, Checkbox, MessageBar, MessageBarBody, Accordion, AccordionItem, AccordionHeader, AccordionPanel, RadioGroup, Menu, MenuTrigger, MenuPopover, MenuList, Radio, DialogActions, Caption2Strong, Body2, Body1Stronger, Caption1Stronger, Display, Image, Title1, TabList, Tab, typographyStyles, Switch, Textarea, Link } from '@fluentui/react-components';
|
|
2
2
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
3
|
import React, { forwardRef, useState, useRef, useEffect, useCallback, useMemo, Fragment as Fragment$1 } from 'react';
|
|
4
4
|
import { ArrowDownloadRegular, Dismiss24Regular, DismissRegular, SubtractRegular, AddRegular, DeleteRegular, InfoRegular, SearchRegular } from '@fluentui/react-icons';
|
|
@@ -15890,8 +15890,8 @@ var uploadStyles = makeStyles({
|
|
|
15890
15890
|
pointerEvents: "none"
|
|
15891
15891
|
},
|
|
15892
15892
|
filePreviewImage: {
|
|
15893
|
-
width: "
|
|
15894
|
-
height: "
|
|
15893
|
+
width: "32px",
|
|
15894
|
+
height: "32px",
|
|
15895
15895
|
borderRadius: tokens.borderRadiusSmall,
|
|
15896
15896
|
objectFit: "cover"
|
|
15897
15897
|
},
|
|
@@ -15899,6 +15899,18 @@ var uploadStyles = makeStyles({
|
|
|
15899
15899
|
maxWidth: "100%",
|
|
15900
15900
|
maxHeight: "70vh",
|
|
15901
15901
|
objectFit: "contain"
|
|
15902
|
+
},
|
|
15903
|
+
infoLabel: {
|
|
15904
|
+
'& [role="note"]': {
|
|
15905
|
+
backgroundColor: "black",
|
|
15906
|
+
color: "white"
|
|
15907
|
+
}
|
|
15908
|
+
},
|
|
15909
|
+
label: {
|
|
15910
|
+
whiteSpace: "nowrap",
|
|
15911
|
+
overflow: "hidden",
|
|
15912
|
+
textOverflow: "ellipsis",
|
|
15913
|
+
display: "block"
|
|
15902
15914
|
}
|
|
15903
15915
|
});
|
|
15904
15916
|
var FileUpload = React.forwardRef(
|
|
@@ -15914,7 +15926,8 @@ var FileUpload = React.forwardRef(
|
|
|
15914
15926
|
language = "id",
|
|
15915
15927
|
labels: customLabels,
|
|
15916
15928
|
pdfIcon,
|
|
15917
|
-
downloadTemplateDocument = false
|
|
15929
|
+
downloadTemplateDocument = false,
|
|
15930
|
+
infoLabel
|
|
15918
15931
|
}, ref) => {
|
|
15919
15932
|
const mergedLabels = { ...DEFAULT_LABELS39[language], ...customLabels };
|
|
15920
15933
|
const styles = uploadStyles();
|
|
@@ -16047,8 +16060,11 @@ var FileUpload = React.forwardRef(
|
|
|
16047
16060
|
return /* @__PURE__ */ jsxs(
|
|
16048
16061
|
Field,
|
|
16049
16062
|
{
|
|
16063
|
+
ref,
|
|
16050
16064
|
required,
|
|
16051
|
-
label:
|
|
16065
|
+
label: {
|
|
16066
|
+
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsx(InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label })
|
|
16067
|
+
},
|
|
16052
16068
|
className: styles.fieldContainer,
|
|
16053
16069
|
children: [
|
|
16054
16070
|
/* @__PURE__ */ jsx(
|
|
@@ -16128,8 +16144,10 @@ var FileUpload = React.forwardRef(
|
|
|
16128
16144
|
{
|
|
16129
16145
|
ref,
|
|
16130
16146
|
required,
|
|
16131
|
-
label: /* @__PURE__ */ jsx(Body1, { children: label }),
|
|
16132
16147
|
className: styles.fieldContainer,
|
|
16148
|
+
label: {
|
|
16149
|
+
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsx(InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsx(Body1, { className: styles.label, children: label })
|
|
16150
|
+
},
|
|
16133
16151
|
children: [
|
|
16134
16152
|
/* @__PURE__ */ jsxs(
|
|
16135
16153
|
Container,
|