blockforce-design-system 2.0.2 → 2.0.4
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/MIGRATION.md +23 -19
- package/README.md +6 -2
- package/lib/ai/components.json +6531 -0
- package/lib/ai/icons.txt +5999 -0
- package/lib/ai/tokens.md +231 -0
- package/lib/commonjs/components/data-display/calendar/calendar.styles.js +14 -13
- package/lib/commonjs/components/data-display/calendar/calendar.styles.js.map +1 -1
- package/lib/commonjs/components/data-display/matrix/matrix.styles.js +22 -21
- package/lib/commonjs/components/data-display/matrix/matrix.styles.js.map +1 -1
- package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js +11 -10
- package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js.map +1 -1
- package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js +8 -21
- package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/commonjs/components/layout/drawer/drawer.styles.js +7 -5
- package/lib/commonjs/components/layout/drawer/drawer.styles.js.map +1 -1
- package/lib/commonjs/components/layout/modal/modal.styles.js +7 -18
- package/lib/commonjs/components/layout/modal/modal.styles.js.map +1 -1
- package/lib/commonjs/components/layout/popover/popover.styles.js +3 -2
- package/lib/commonjs/components/layout/popover/popover.styles.js.map +1 -1
- package/lib/commonjs/components/layout/slider/slider.styles.js +5 -26
- package/lib/commonjs/components/layout/slider/slider.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table/table.comp.js +1 -1
- package/lib/commonjs/components/layout/table/table.comp.js.map +1 -1
- package/lib/commonjs/components/layout/table/table.styles.js +18 -17
- package/lib/commonjs/components/layout/table/table.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.comp.js +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.comp.js.map +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.styles.js +1 -1
- package/lib/commonjs/components/layout/table-head/table-head.styles.js.map +1 -1
- package/lib/commonjs/components/layout/table-row/table-row.comp.js +1 -1
- package/lib/commonjs/components/layout/table-row/table-row.comp.js.map +1 -1
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js +47 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
- package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/theme/scrollbar.js +39 -0
- package/lib/commonjs/theme/scrollbar.js.map +1 -0
- package/lib/index.d.ts +134 -2
- package/lib/module/components/data-display/calendar/calendar.styles.js +17 -16
- package/lib/module/components/data-display/calendar/calendar.styles.js.map +1 -1
- package/lib/module/components/data-display/matrix/matrix.styles.js +20 -19
- package/lib/module/components/data-display/matrix/matrix.styles.js.map +1 -1
- package/lib/module/components/data-display/side-panel/side-panel.styles.js +10 -9
- package/lib/module/components/data-display/side-panel/side-panel.styles.js.map +1 -1
- package/lib/module/components/forms/autocomplete/autocomplete.styles.js +8 -21
- package/lib/module/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
- package/lib/module/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/module/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/module/components/layout/drawer/drawer.styles.js +7 -5
- package/lib/module/components/layout/drawer/drawer.styles.js.map +1 -1
- package/lib/module/components/layout/modal/modal.styles.js +7 -18
- package/lib/module/components/layout/modal/modal.styles.js.map +1 -1
- package/lib/module/components/layout/popover/popover.styles.js +2 -1
- package/lib/module/components/layout/popover/popover.styles.js.map +1 -1
- package/lib/module/components/layout/slider/slider.styles.js +5 -26
- package/lib/module/components/layout/slider/slider.styles.js.map +1 -1
- package/lib/module/components/layout/table/table.comp.js +1 -1
- package/lib/module/components/layout/table/table.comp.js.map +1 -1
- package/lib/module/components/layout/table/table.styles.js +9 -8
- package/lib/module/components/layout/table/table.styles.js.map +1 -1
- package/lib/module/components/layout/table-head/table-head.comp.js +1 -1
- package/lib/module/components/layout/table-head/table-head.comp.js.map +1 -1
- package/lib/module/components/layout/table-head/table-head.styles.js +1 -1
- package/lib/module/components/layout/table-head/table-head.styles.js.map +1 -1
- package/lib/module/components/layout/table-row/table-row.comp.js +1 -1
- package/lib/module/components/layout/table-row/table-row.comp.js.map +1 -1
- package/lib/module/components/navigation/navigation-card/navigation-card.comp.js +2 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.styles.js +47 -0
- package/lib/module/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
- package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
- package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
- package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/theme/scrollbar.js +39 -0
- package/lib/module/theme/scrollbar.js.map +1 -0
- package/llms-full.txt +2282 -0
- package/llms.txt +162 -0
- package/package.json +18 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme })
|
|
1
|
+
{"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { thinScrollbar } from '../../../theme'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n ${thinScrollbar}\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) =>\n theme.spacing.md};\n`\n\nexport const Footer = styled.div`\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md};\n border-top: 1px solid ${({ theme }) => theme.colors.grey_5};\n`\n\nexport const CollapsedStrip = styled.button`\n display: flex;\n flex: none;\n align-items: flex-start;\n justify-content: center;\n width: 40px;\n min-height: 120px;\n padding: ${({ theme }) => theme.spacing.sm};\n border: none;\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.grey_6};\n cursor: pointer;\n\n &:hover {\n background: ${({ theme }) => theme.colors.grey_5};\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n\nexport const Item = styled.button<{ $selected: boolean }>`\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 100%;\n padding: ${({ theme }) => theme.spacing.sm}\n ${({ theme }) => theme.spacing[1.5]};\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n &:hover:not(:disabled) {\n background: ${({ theme }) => theme.colors.grey_6};\n }\n\n ${({ $selected, theme }) =>\n $selected &&\n css`\n border-color: transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n\n &:hover:not(:disabled) {\n background:\n linear-gradient(${theme.colors.grey_6}, ${theme.colors.grey_6})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n }\n `}\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n"],"names":["Panel","styled","aside","$width","theme","colors","grey_5","radius","xl","white","box_shadow","card","typography","fontFamily","Header","div","spacing","sm","md","TitleRow","Title","h3","textSize","bodySm","fontWeight","semibold","grey_1","Description","p","caption","grey_2","List","thinScrollbar","Footer","CollapsedStrip","button","grey_6","border","focus","Item","grey_4","motion","duration","fast","$selected","css","brand","gradient"],"mappings":"yFAIaA,MAAAA,EAAQC,EAAMA,OAACC,KAAyB;;;WAG1C,EAAGC,YAAaA;;;;sBAIL,EAAGC,WAAYA,EAAMC,OAAOC;mBAC/B,EAAGF,WAAYA,EAAMG,OAAOC;gBAC/B,EAAGJ,WAAYA,EAAMC,OAAOI;gBAC5B,EAAGL,WAAYA,EAAMM,WAAWC;iBAC/B,EAAGP,WAAYA,EAAMQ,WAAWC;;EAIpCC,EAASb,EAAMA,OAACc,GAAG;;;SAGvB,EAAGX,WAAYA,EAAMY,QAAQC;aACzB,EAAGb,WAAYA,EAAMY,QAAQE;oBACtB,EAAGd,WAAYA,EAAMY,QAAQC;EAGpCE,EAAWlB,EAAMA,OAACc,GAAG;;;;SAIzB,EAAGX,WAAYA,EAAMY,QAAQC;EAGzBG,EAAQnB,EAAMA,OAACoB,EAAE;;eAEf,EAAGjB,WAAYA,EAAMQ,WAAWU,SAASC;iBACvC,EAAGnB,WAAYA,EAAMQ,WAAWY,WAAWC;WACjD,EAAGrB,WAAYA,EAAMC,OAAOqB;EAG1BC,EAAc1B,EAAMA,OAAC2B,CAAC;;eAEpB,EAAGxB,WAAYA,EAAMQ,WAAWU,SAASO;WAC7C,EAAGzB,WAAYA,EAAMC,OAAOyB;EAG1BC,EAAO9B,EAAMA,OAACc,GAAG;;;;SAIrB,EAAGX,WAAYA,EAAMY,QAAQC;;;IAGlCe;aACS,EAAG5B,WAAYA,EAAMY,QAAQC,MAAM,EAAGb,WAC/CA,EAAMY,QAAQE;EAGLe,EAAShC,EAAMA,OAACc,GAAG;aACnB,EAAGX,WAAYA,EAAMY,QAAQC,MAAM,EAAGb,WAAYA,EAAMY,QAAQE;0BACnD,EAAGd,WAAYA,EAAMC,OAAOC;EAGzC4B,EAAiBjC,EAAMA,OAACkC,MAAM;;;;;;;aAO9B,EAAG/B,WAAYA,EAAMY,QAAQC;;mBAEvB,EAAGb,WAAYA,EAAMG,OAAOW;gBAC/B,EAAGd,WAAYA,EAAMC,OAAO+B;;;;kBAI1B,EAAGhC,WAAYA,EAAMC,OAAOC;;;;yBAIrB,EAAGF,WAAYA,EAAMC,OAAOgC,OAAOC;;;EAK/CC,EAAOtC,EAAMA,OAACkC,MAA8B;;;;;aAK5C,EAAG/B,WAAYA,EAAMY,QAAQC;MACpC,EAAGb,WAAYA,EAAMY,QAAQ;sBACb,EAAGZ,WAAYA,EAAMC,OAAOmC;mBAC/B,EAAGpC,WAAYA,EAAMG,OAAOW;gBAC/B,EAAGd,WAAYA,EAAMC,OAAOI;;;;iCAIX,EAAGL,WAAYA,EAAMqC,OAAOC,SAASC;;;kBAGpD,EAAGvC,WAAYA,EAAMC,OAAO+B;;;IAG1C,EAAGQ,YAAWxC,WACdwC,GACAC,EAAAA,GAAG;;;0BAGmBzC,EAAMC,OAAOI,UAAUL,EAAMC,OAAOI;;UAEpDL,EAAMC,OAAOyC,MAAMC;;;;4BAID3C,EAAMC,OAAO+B,WAAWhC,EAAMC,OAAO+B;;YAErDhC,EAAMC,OAAOyC,MAAMC;;;;;;;;;;yBAUN,EAAG3C,WAAYA,EAAMC,OAAOgC,OAAOC;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("styled-components"),o=require("../form.styles.js"),r=require("../../layout/box/box.comp.js"),t=require("../../../theme/theme.util.js"),i=require("../../typography/text/text.comp.js");const
|
|
1
|
+
"use strict";var e=require("styled-components"),o=require("../form.styles.js"),r=require("../../layout/box/box.comp.js"),t=require("../../../theme/theme.util.js"),i=require("../../../theme/scrollbar.js"),d=require("../../typography/text/text.comp.js");const s=e.styled(r.Box).withConfig({shouldForwardProp:e=>!["focused"].includes(e)})`
|
|
2
2
|
min-height: 44px;
|
|
3
3
|
width: 100%;
|
|
4
4
|
border-radius: ${({theme:e})=>e.border_radius.input};
|
|
@@ -27,25 +27,12 @@
|
|
|
27
27
|
&:focus {
|
|
28
28
|
outline: none;
|
|
29
29
|
}
|
|
30
|
-
`,
|
|
30
|
+
`,n=e.styled(r.Box)`
|
|
31
31
|
flex-direction: column;
|
|
32
32
|
max-height: 300px;
|
|
33
33
|
overflow-y: auto;
|
|
34
34
|
background-color: ${({theme:e})=>t.getThemeColor("white",e)};
|
|
35
|
-
|
|
36
|
-
&::-webkit-scrollbar {
|
|
37
|
-
width: 10px;
|
|
38
|
-
}
|
|
39
|
-
&::-webkit-scrollbar-track {
|
|
40
|
-
background: ${e=>t.getThemeColor("white",e.theme)};
|
|
41
|
-
}
|
|
42
|
-
&::-webkit-scrollbar-thumb {
|
|
43
|
-
border-radius: 8px;
|
|
44
|
-
background: ${e=>t.getThemeColor("grey_5",e.theme)};
|
|
45
|
-
}
|
|
46
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
47
|
-
background: ${e=>t.getThemeColor("grey_4",e.theme)};
|
|
48
|
-
}
|
|
35
|
+
${i.thinScrollbar}
|
|
49
36
|
|
|
50
37
|
div {
|
|
51
38
|
border-bottom: 1px solid ${({theme:e})=>t.getThemeColor("grey_5",e)};
|
|
@@ -64,12 +51,12 @@
|
|
|
64
51
|
&:hover {
|
|
65
52
|
background-color: ${({selected:e,disabled:o,theme:r})=>e||o?void 0:t.getThemeColor("grey_5",r)};
|
|
66
53
|
}
|
|
67
|
-
`,
|
|
54
|
+
`,h=e.styled(r.Box)`
|
|
68
55
|
display: flex;
|
|
69
56
|
gap: ${({theme:e})=>e.spacing[1]};
|
|
70
57
|
max-width: 50%;
|
|
71
58
|
flex-wrap: wrap;
|
|
72
|
-
`,
|
|
59
|
+
`,p=e.styled(r.Box)`
|
|
73
60
|
background-color: ${({theme:e})=>t.getThemeColor("grey_5",e)};
|
|
74
61
|
border: 1px solid ${({theme:e})=>t.getThemeColor("grey_4",e)};
|
|
75
62
|
padding: 2px 4px;
|
|
@@ -78,14 +65,14 @@
|
|
|
78
65
|
align-items: center;
|
|
79
66
|
gap: ${({theme:e})=>e.spacing[1]};
|
|
80
67
|
max-width: 100%;
|
|
81
|
-
`,
|
|
68
|
+
`,m=e.styled(r.Box)`
|
|
82
69
|
overflow: hidden;
|
|
83
|
-
`,
|
|
70
|
+
`,g=e.styled(d.Text)`
|
|
84
71
|
width: 100%;
|
|
85
72
|
p {
|
|
86
73
|
text-overflow: ellipsis;
|
|
87
74
|
white-space: nowrap;
|
|
88
75
|
overflow: hidden;
|
|
89
76
|
}
|
|
90
|
-
`;exports.InputContainer=
|
|
77
|
+
`;exports.InputContainer=s,exports.Option=a,exports.OptionsContainer=n,exports.StyledInput=l,exports.Tag=p,exports.TagContainer=h,exports.TagText=g,exports.TagTextContainer=m;
|
|
91
78
|
//# sourceMappingURL=autocomplete.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.styles.js","sources":["../../../../../src/components/forms/autocomplete/autocomplete.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { IconsName } from '../../icons'\nimport { Box } from '../../layout'\nimport { Text } from '../../typography'\nimport { fieldBorder, fieldShadow } from '../form.styles'\nimport { InputState } from '../form.types'\n\nexport const InputContainer = styled(Box).withConfig({\n shouldForwardProp: (prop) => !['focused'].includes(prop),\n})<{\n focused?: boolean\n disabled?: boolean\n state?: InputState\n $borderColor?: string\n}>`\n min-height: 44px;\n width: 100%;\n border-radius: ${({ theme }) => theme.border_radius.input};\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n box-shadow: ${({ theme, state, focused, $borderColor }) =>\n fieldShadow(theme, state, !!focused, $borderColor)};\n transition:\n box-shadow 250ms ease-out,\n border-color 200ms ease;\n width: 100%;\n align-items: center;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n outline: none;\n\n ${({ disabled, theme }) =>\n disabled && `background-color: ${getThemeColor('grey_5', theme)};`}\n\n ${fieldBorder}\n`\nexport const StyledInput = styled.input.withConfig({\n shouldForwardProp: (prop) => ![''].includes(prop),\n})<{ icon?: IconsName }>`\n min-height: 100%;\n width: 100%;\n border: none;\n background: none;\n color: ${({ theme }) => getThemeColor('grey_1', theme)};\n font-size: ${({ theme }) => theme.typography.body_size.normal};\n\n &:focus {\n outline: none;\n }\n`\n\nexport const OptionsContainer = styled(Box)`\n flex-direction: column;\n max-height: 300px;\n overflow-y: auto;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n
|
|
1
|
+
{"version":3,"file":"autocomplete.styles.js","sources":["../../../../../src/components/forms/autocomplete/autocomplete.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\nimport { IconsName } from '../../icons'\nimport { Box } from '../../layout'\nimport { Text } from '../../typography'\nimport { fieldBorder, fieldShadow } from '../form.styles'\nimport { InputState } from '../form.types'\n\nexport const InputContainer = styled(Box).withConfig({\n shouldForwardProp: (prop) => !['focused'].includes(prop),\n})<{\n focused?: boolean\n disabled?: boolean\n state?: InputState\n $borderColor?: string\n}>`\n min-height: 44px;\n width: 100%;\n border-radius: ${({ theme }) => theme.border_radius.input};\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n box-shadow: ${({ theme, state, focused, $borderColor }) =>\n fieldShadow(theme, state, !!focused, $borderColor)};\n transition:\n box-shadow 250ms ease-out,\n border-color 200ms ease;\n width: 100%;\n align-items: center;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n outline: none;\n\n ${({ disabled, theme }) =>\n disabled && `background-color: ${getThemeColor('grey_5', theme)};`}\n\n ${fieldBorder}\n`\nexport const StyledInput = styled.input.withConfig({\n shouldForwardProp: (prop) => ![''].includes(prop),\n})<{ icon?: IconsName }>`\n min-height: 100%;\n width: 100%;\n border: none;\n background: none;\n color: ${({ theme }) => getThemeColor('grey_1', theme)};\n font-size: ${({ theme }) => theme.typography.body_size.normal};\n\n &:focus {\n outline: none;\n }\n`\n\nexport const OptionsContainer = styled(Box)`\n flex-direction: column;\n max-height: 300px;\n overflow-y: auto;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n ${thinScrollbar}\n\n div {\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n }\n\n div:last-child {\n border-bottom: none;\n }\n`\n\nexport const Option = styled(Box)<{ selected: boolean; disabled?: boolean }>`\n width: 100%;\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n background-color: ${({ selected, theme }) =>\n selected ? getThemeColor('secondary', theme) : 'transparent'};\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n cursor: ${({ disabled }) => (disabled ? 'initial' : 'pointer')};\n\n &:hover {\n background-color: ${({ selected, disabled, theme }) =>\n selected || disabled ? undefined : getThemeColor('grey_5', theme)};\n }\n`\n\nexport const TagContainer = styled(Box)`\n display: flex;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 50%;\n flex-wrap: wrap;\n`\n\nexport const Tag = styled(Box)`\n background-color: ${({ theme }) => getThemeColor('grey_5', theme)};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n padding: 2px 4px;\n border-radius: ${({ theme }) => theme.border_radius.input};\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 100%;\n`\n\nexport const TagTextContainer = styled(Box)`\n overflow: hidden;\n`\n\nexport const TagText = styled(Text)`\n width: 100%;\n p {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n`\n"],"names":["InputContainer","styled","Box","withConfig","shouldForwardProp","prop","includes","theme","border_radius","input","spacing","getThemeColor","state","focused","$borderColor","fieldShadow","disabled","fieldBorder","StyledInput","typography","body_size","normal","OptionsContainer","thinScrollbar","Option","selected","undefined","TagContainer","Tag","TagTextContainer","TagText","Text"],"mappings":"4PASO,MAAMA,EAAiBC,EAAMA,OAACC,OAAKC,WAAW,CACnDC,kBAAoBC,IAAU,CAAC,WAAWC,SAASD,IAMnD;;;mBAGiB,EAAGE,WAAYA,EAAMC,cAAcC;aACzC,EAAGF,WAAY,GAAGA,EAAMG,QAAQ,MAAQH,EAAMG,QAAQ;sBAC7C,EAAGH,WAAYI,EAAaA,cAAC,SAAUJ;gBAC7C,EAAGA,QAAOK,QAAOC,UAASC,kBACtCC,EAAAA,YAAYR,EAAOK,IAASC,EAASC;;;;;;sBAMnB,EAAGP,WAAYI,EAAaA,cAAC,QAASJ;;;IAGxD,EAAGS,WAAUT,WACbS,wBAAiCL,EAAAA,cAAc,SAAUJ;;IAEzDU;EAESC,EAAcjB,EAAAA,OAAOQ,MAAMN,WAAW,CACjDC,kBAAoBC,IAAU,CAAC,IAAIC,SAASD,IACtB;;;;;WAKb,EAAGE,WAAYI,EAAaA,cAAC,SAAUJ;eACnC,EAAGA,WAAYA,EAAMY,WAAWC,UAAUC;;;;;EAO5CC,EAAmBrB,EAAAA,OAAOC,EAAAA,IAAI;;;;sBAIrB,EAAGK,WAAYI,EAAaA,cAAC,QAASJ;IACxDgB;;;+BAG2B,EAAGhB,WAAYI,EAAaA,cAAC,SAAUJ;;;;;;EAQzDiB,EAASvB,EAAAA,OAAOC,EAAAA,IAA+C;;aAE/D,EAAGK,WAAY,GAAGA,EAAMG,QAAQ,MAAQH,EAAMG,QAAQ;sBAC7C,EAAGe,WAAUlB,WAC/BkB,EAAWd,EAAaA,cAAC,YAAaJ,GAAS;6BACtB,EAAGA,WAAYI,EAAaA,cAAC,SAAUJ;YACxD,EAAGS,cAAgBA,EAAW,UAAY;;;wBAG9B,EAAGS,WAAUT,WAAUT,WACzCkB,GAAYT,OAAWU,EAAYf,EAAAA,cAAc,SAAUJ;;EAIpDoB,EAAe1B,EAAAA,OAAOC,EAAAA,IAAI;;SAE9B,EAAGK,WAAYA,EAAMG,QAAQ;;;EAKzBkB,EAAM3B,EAAAA,OAAOC,EAAAA,IAAI;sBACR,EAAGK,WAAYI,EAAaA,cAAC,SAAUJ;sBACvC,EAAGA,WAAYI,EAAaA,cAAC,SAAUJ;;mBAE1C,EAAGA,WAAYA,EAAMC,cAAcC;;;SAG7C,EAAGF,WAAYA,EAAMG,QAAQ;;EAIzBmB,EAAmB5B,EAAAA,OAAOC,EAAAA,IAAI;;EAI9B4B,EAAU7B,EAAAA,OAAO8B,EAAAA,KAAK;;;;;;;"}
|
package/lib/commonjs/components/forms/file/file-image-preview/file-image-preview.comp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-image-preview.comp.js","sources":["../../../../../../src/components/forms/file/file-image-preview/file-image-preview.comp.tsx"],"sourcesContent":["import { useTheme } from 'styled-components'\n\nimport { Button } from '../../../buttons'\nimport { Icon } from '../../../icons'\nimport { Image } from '../../../images'\nimport { Box } from '../../../layout'\nimport { Text } from '../../../typography'\nimport * as DragNDropStyles from '../file.styles'\nimport {\n bytesToSize,\n getFileIcon,\n getFileName,\n isImageFile,\n} from '../file.utils'\nimport { useObjectUrl } from '../use-object-url'\n\nimport { FileImagePreviewProps } from './file-image-preview.types'\n\nexport const FileImagePreview = ({\n file,\n onChange,\n onDelete,\n onClickInput,\n ...rest\n}: FileImagePreviewProps) => {\n const theme = useTheme()\n\n const fileIsLink = !(file instanceof File)\n\n const handleOnChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange && e.target.files) {\n onChange(e.target.files[0])\n e.target.value = ''\n }\n }\n\n const imageUrl = useObjectUrl(file)\n\n return (\n <Box gap={2} alignItems=\"center\" data-testid=\"file-image-preview\" {...rest}>\n {isImageFile(file) ? (\n imageUrl ? (\n <Image\n width=\"56px\"\n height=\"56px\"\n objectFit=\"cover\"\n borderRadius={theme.border_radius.card}\n src={imageUrl}\n alt={getFileName(file)}\n />\n ) : (\n <Box width=\"56px\" height=\"56px\" flex=\"none\" />\n )\n ) : (\n <Box\n width=\"56px\"\n height=\"56px\"\n flex=\"none\"\n justifyContent=\"center\"\n alignItems=\"center\"\n borderRadius={theme.border_radius.card}\n backgroundColor=\"grey_5\"\n data-testid=\"file-icon\"\n >\n <Icon name={getFileIcon(file)} size={28} color=\"grey_2\" />\n </Box>\n )}\n <Box direction=\"column\" gap={1}>\n <Box gap={1}>\n {onChange && (\n <Button variant=\"text\" padding={'0'} data-testid=\"change-button\">\n <input\n hidden\n type=\"file\"\n id=\"fileToChange\"\n onChange={handleOnChange}\n />\n <DragNDropStyles.UpdateLabel\n htmlFor=\"fileToChange\"\n onClick={() => onClickInput?.()}\n >\n <Icon name=\"image_edit\" size={20} color={theme.colors.grey_1} />\n </DragNDropStyles.UpdateLabel>\n </Button>\n )}\n <Button variant=\"text\" padding={'0'} onClick={onDelete}>\n <Icon name=\"delete_bin7\" size={20} color={theme.colors.grey_2} />\n </Button>\n </Box>\n <Text size=\"small\">\n {getFileName(file)} {!fileIsLink && bytesToSize(file.size)}\n </Text>\n </Box>\n </Box>\n )\n}\n"],"names":["FileImagePreview","file","onChange","onDelete","onClickInput","rest","theme","useTheme","fileIsLink","File","imageUrl","useObjectUrl","_jsxs","Box","gap","alignItems","children","isImageFile","_jsx","jsx","Image","width","height","objectFit","borderRadius","border_radius","card","src","alt","getFileName","flex","justifyContent","backgroundColor","Icon","name","getFileIcon","size","color","direction","jsxs","Button","variant","padding","hidden","type","id","e","target","files","value","DragNDropStyles","htmlFor","onClick","colors","grey_1","grey_2","Text","bytesToSize"],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-image-preview.comp.js","sources":["../../../../../../src/components/forms/file/file-image-preview/file-image-preview.comp.tsx"],"sourcesContent":["import { useTheme } from 'styled-components'\n\nimport { Button } from '../../../buttons'\nimport { Icon } from '../../../icons'\nimport { Image } from '../../../images'\nimport { Box } from '../../../layout'\nimport { Text } from '../../../typography'\nimport * as DragNDropStyles from '../file.styles'\nimport {\n bytesToSize,\n getFileIcon,\n getFileName,\n isImageFile,\n} from '../file.utils'\nimport { useObjectUrl } from '../use-object-url'\n\nimport { FileImagePreviewProps } from './file-image-preview.types'\n\n/**\n * Miniatura de uma imagem enviada (arquivo ou URL), com ações de trocar e excluir.\n * Arquivo que não é imagem aparece como ícone. Normalmente vem pronto dentro do FileDropzone (`preview=\"image\"`).\n * @example <FileImagePreview file={foto} onDelete={remover} />\n */\nexport const FileImagePreview = ({\n file,\n onChange,\n onDelete,\n onClickInput,\n ...rest\n}: FileImagePreviewProps) => {\n const theme = useTheme()\n\n const fileIsLink = !(file instanceof File)\n\n const handleOnChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (onChange && e.target.files) {\n onChange(e.target.files[0])\n e.target.value = ''\n }\n }\n\n const imageUrl = useObjectUrl(file)\n\n return (\n <Box gap={2} alignItems=\"center\" data-testid=\"file-image-preview\" {...rest}>\n {isImageFile(file) ? (\n imageUrl ? (\n <Image\n width=\"56px\"\n height=\"56px\"\n objectFit=\"cover\"\n borderRadius={theme.border_radius.card}\n src={imageUrl}\n alt={getFileName(file)}\n />\n ) : (\n <Box width=\"56px\" height=\"56px\" flex=\"none\" />\n )\n ) : (\n <Box\n width=\"56px\"\n height=\"56px\"\n flex=\"none\"\n justifyContent=\"center\"\n alignItems=\"center\"\n borderRadius={theme.border_radius.card}\n backgroundColor=\"grey_5\"\n data-testid=\"file-icon\"\n >\n <Icon name={getFileIcon(file)} size={28} color=\"grey_2\" />\n </Box>\n )}\n <Box direction=\"column\" gap={1}>\n <Box gap={1}>\n {onChange && (\n <Button variant=\"text\" padding={'0'} data-testid=\"change-button\">\n <input\n hidden\n type=\"file\"\n id=\"fileToChange\"\n onChange={handleOnChange}\n />\n <DragNDropStyles.UpdateLabel\n htmlFor=\"fileToChange\"\n onClick={() => onClickInput?.()}\n >\n <Icon name=\"image_edit\" size={20} color={theme.colors.grey_1} />\n </DragNDropStyles.UpdateLabel>\n </Button>\n )}\n <Button variant=\"text\" padding={'0'} onClick={onDelete}>\n <Icon name=\"delete_bin7\" size={20} color={theme.colors.grey_2} />\n </Button>\n </Box>\n <Text size=\"small\">\n {getFileName(file)} {!fileIsLink && bytesToSize(file.size)}\n </Text>\n </Box>\n </Box>\n )\n}\n"],"names":["FileImagePreview","file","onChange","onDelete","onClickInput","rest","theme","useTheme","fileIsLink","File","imageUrl","useObjectUrl","_jsxs","Box","gap","alignItems","children","isImageFile","_jsx","jsx","Image","width","height","objectFit","borderRadius","border_radius","card","src","alt","getFileName","flex","justifyContent","backgroundColor","Icon","name","getFileIcon","size","color","direction","jsxs","Button","variant","padding","hidden","type","id","e","target","files","value","DragNDropStyles","htmlFor","onClick","colors","grey_1","grey_2","Text","bytesToSize"],"mappings":"0bAuBgCA,EAC9BC,OACAC,WACAC,WACAC,kBACGC,MAEH,MAAMC,EAAQC,EAAAA,WAERC,IAAeP,aAAgBQ,MAS/BC,EAAWC,eAAaV,GAE9B,OACEW,EAAAA,KAACC,EAAAA,IAAG,CAACC,IAAK,EAAGC,WAAW,SAAQ,cAAa,wBAAyBV,EACnEW,SAAA,CAAAC,EAAAA,YAAYhB,GACXS,EACEQ,EAACC,IAAAC,QACC,CAAAC,MAAM,OACNC,OAAO,OACPC,UAAU,QACVC,aAAclB,EAAMmB,cAAcC,KAClCC,IAAKjB,EACLkB,IAAKC,EAAWA,YAAC5B,KAGnBiB,EAAAC,IAACN,MAAG,CAACQ,MAAM,OAAOC,OAAO,OAAOQ,KAAK,SAGvCZ,EAAAC,IAACN,MACC,CAAAQ,MAAM,OACNC,OAAO,OACPQ,KAAK,OACLC,eAAe,SACfhB,WAAW,SACXS,aAAclB,EAAMmB,cAAcC,KAClCM,gBAAgB,uBACJ,YAAWhB,SAEvBE,EAACC,IAAAc,QAAKC,KAAMC,EAAWA,YAAClC,GAAOmC,KAAM,GAAIC,MAAM,aAGnDzB,OAACC,MAAG,CAACyB,UAAU,SAASxB,IAAK,EAC3BE,SAAA,CAAAJ,EAAA2B,KAAC1B,MAAG,CAACC,IAAK,EACPE,SAAA,CAAAd,GACCU,EAAA2B,KAACC,SAAM,CAACC,QAAQ,OAAOC,QAAS,IAAiB,cAAA,0BAC/CxB,EACEC,IAAA,QAAA,CAAAwB,QACA,EAAAC,KAAK,OACLC,GAAG,eACH3C,SA9CU4C,IAClB5C,GAAY4C,EAAEC,OAAOC,QACvB9C,EAAS4C,EAAEC,OAAOC,MAAM,IACxBF,EAAEC,OAAOE,MAAQ,GACnB,IA4CU/B,EAACC,IAAA+B,cAA2B,CAC1BC,QAAQ,eACRC,QAASA,IAAMhD,MAEfY,SAAAE,EAAAC,IAACc,OAAI,CAACC,KAAK,aAAaE,KAAM,GAAIC,MAAO/B,EAAM+C,OAAOC,cAI5DpC,EAACC,IAAAqB,SAAO,CAAAC,QAAQ,OAAOC,QAAS,IAAKU,QAASjD,EAC5Ca,SAAAE,EAAAC,IAACc,OAAI,CAACC,KAAK,cAAcE,KAAM,GAAIC,MAAO/B,EAAM+C,OAAOE,cAG3D3C,OAAC4C,OAAI,CAACpB,KAAK,QACRpB,SAAA,CAAAa,cAAY5B,GAAK,KAAIO,GAAciD,EAAWA,YAACxD,EAAKmC,cAGrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-image-preview-list.comp.js","sources":["../../../../../../src/components/forms/file/file-image-preview-list/file-image-preview-list.comp.tsx"],"sourcesContent":["import { useState } from 'react'\n\nimport { Text } from '../../../typography'\nimport { FileImagePreview } from '../file-image-preview/file-image-preview.comp'\n\nimport { FileImagePreviewListProps } from './file-image-preview-list.types'\n\nimport * as Styles from './file-image-preview-list.styles'\n\nexport const FileImagePreviewList = ({\n files,\n setFiles,\n onDelete,\n defaultFiles,\n onDeleteDefaultFile,\n ...rest\n}: FileImagePreviewListProps) => {\n const [fileToChange, setFileToChange] = useState<number | null>(null)\n\n const handleUpload = (file: File) => {\n const fileListCopy = [...files]\n if (fileToChange !== null) {\n fileListCopy[fileToChange] = file\n setFiles?.(fileListCopy)\n setFileToChange(null)\n }\n }\n\n return (\n <Styles.FileImageContainer\n data-testid=\"file-image-preview-list\"\n marginTop={1}\n width=\"100%\"\n {...rest}\n >\n {files.map((file, index) => (\n <FileImagePreview\n file={file}\n key={`image-preview-${index}`}\n onChange={(_file) => handleUpload(_file)}\n onClickInput={() => setFileToChange(index)}\n onDelete={() => onDelete?.([index])}\n />\n ))}\n\n {defaultFiles && defaultFiles.length > 0 && (\n <Styles.DefaultFilesContainer\n direction=\"column\"\n width=\"100%\"\n data-testid=\"default-files\"\n >\n <Text color=\"grey_2\" size=\"small\">\n Adicionados anteriormente\n </Text>\n\n <Styles.FileImageContainer marginTop={1}>\n {defaultFiles?.map((file, index) => (\n <FileImagePreview\n file={file}\n key={`default-image-preview-${index}`}\n onDelete={() => onDeleteDefaultFile?.(index)}\n />\n ))}\n </Styles.FileImageContainer>\n </Styles.DefaultFilesContainer>\n )}\n </Styles.FileImageContainer>\n )\n}\n"],"names":["FileImagePreviewList","files","setFiles","onDelete","defaultFiles","onDeleteDefaultFile","rest","fileToChange","setFileToChange","useState","_jsxs","Styles","marginTop","width","children","map","file","index","_jsx","jsx","FileImagePreview","onChange","_file","fileListCopy","handleUpload","onClickInput","length","direction","Text","color","size"],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-image-preview-list.comp.js","sources":["../../../../../../src/components/forms/file/file-image-preview-list/file-image-preview-list.comp.tsx"],"sourcesContent":["import { useState } from 'react'\n\nimport { Text } from '../../../typography'\nimport { FileImagePreview } from '../file-image-preview/file-image-preview.comp'\n\nimport { FileImagePreviewListProps } from './file-image-preview-list.types'\n\nimport * as Styles from './file-image-preview-list.styles'\n\n/**\n * Grade de miniaturas das imagens enviadas, com excluir em cada uma. `defaultFiles` mostra imagens que já estavam salvas (URLs).\n * Normalmente vem pronta dentro do FileDropzone com `multiple` e `preview=\"image\"`.\n * @example <FileImagePreviewList files={fotos} setFiles={setFotos} />\n */\nexport const FileImagePreviewList = ({\n files,\n setFiles,\n onDelete,\n defaultFiles,\n onDeleteDefaultFile,\n ...rest\n}: FileImagePreviewListProps) => {\n const [fileToChange, setFileToChange] = useState<number | null>(null)\n\n const handleUpload = (file: File) => {\n const fileListCopy = [...files]\n if (fileToChange !== null) {\n fileListCopy[fileToChange] = file\n setFiles?.(fileListCopy)\n setFileToChange(null)\n }\n }\n\n return (\n <Styles.FileImageContainer\n data-testid=\"file-image-preview-list\"\n marginTop={1}\n width=\"100%\"\n {...rest}\n >\n {files.map((file, index) => (\n <FileImagePreview\n file={file}\n key={`image-preview-${index}`}\n onChange={(_file) => handleUpload(_file)}\n onClickInput={() => setFileToChange(index)}\n onDelete={() => onDelete?.([index])}\n />\n ))}\n\n {defaultFiles && defaultFiles.length > 0 && (\n <Styles.DefaultFilesContainer\n direction=\"column\"\n width=\"100%\"\n data-testid=\"default-files\"\n >\n <Text color=\"grey_2\" size=\"small\">\n Adicionados anteriormente\n </Text>\n\n <Styles.FileImageContainer marginTop={1}>\n {defaultFiles?.map((file, index) => (\n <FileImagePreview\n file={file}\n key={`default-image-preview-${index}`}\n onDelete={() => onDeleteDefaultFile?.(index)}\n />\n ))}\n </Styles.FileImageContainer>\n </Styles.DefaultFilesContainer>\n )}\n </Styles.FileImageContainer>\n )\n}\n"],"names":["FileImagePreviewList","files","setFiles","onDelete","defaultFiles","onDeleteDefaultFile","rest","fileToChange","setFileToChange","useState","_jsxs","Styles","marginTop","width","children","map","file","index","_jsx","jsx","FileImagePreview","onChange","_file","fileListCopy","handleUpload","onClickInput","length","direction","Text","color","size"],"mappings":"kQAcoCA,EAClCC,QACAC,WACAC,WACAC,eACAC,yBACGC,MAEH,MAAOC,EAAcC,GAAmBC,EAAQA,SAAgB,MAWhE,OACEC,EAAAA,KAACC,EAAAA,kCACa,0BACZC,UAAW,EACXC,MAAM,UACFP,EAEHQ,SAAA,CAAAb,EAAMc,KAAI,CAACC,EAAMC,IAChBC,EAAAC,IAACC,mBACC,CAAAJ,KAAMA,EAENK,SAAWC,GApBGN,KACpB,MAAMO,EAAe,IAAItB,GACJ,OAAjBM,IACFgB,EAAahB,GAAgBS,EAC7Bd,IAAWqB,GACXf,EAAgB,MAClB,EAc2BgB,CAAaF,GAClCG,aAAcA,IAAMjB,EAAgBS,GACpCd,SAAUA,IAAMA,IAAW,CAACc,KAHvB,iBAAiBA,OAOzBb,GAAgBA,EAAasB,OAAS,GACrChB,EAAAA,KAACC,EAAAA,sBACC,CAAAgB,UAAU,SACVd,MAAM,qBACM,gBAAeC,SAAA,CAE3BI,EAACC,IAAAS,QAAKC,MAAM,SAASC,KAAK,QAEnBhB,SAAA,8BAEPI,MAACP,qBAA0B,CAAAC,UAAW,EAACE,SACpCV,GAAcW,KAAI,CAACC,EAAMC,IACxBC,MAACE,mBAAgB,CACfJ,KAAMA,EAENb,SAAUA,IAAME,IAAsBY,IADR,yBAAAA,cAOd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-preview-list.comp.js","sources":["../../../../../../src/components/forms/file/file-preview-list/file-preview-list.comp.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\n\nimport { useTheme } from 'styled-components'\n\nimport { Button } from '../../../buttons'\nimport { Box } from '../../../layout'\nimport { Text } from '../../../typography'\nimport { FilePreview } from '../file-preview/file-preview.comp'\n\nimport { FilePreviewListProps } from './file-preview-list.types'\n\nimport * as Styles from './file-preview-list.styles'\n\nexport const FilePreviewList = ({\n files,\n showImages = false,\n setFiles,\n onDelete,\n defaultFiles,\n onDeleteDefaultFile,\n ...rest\n}: FilePreviewListProps) => {\n const theme = useTheme()\n const [selectedFiles, setSelectedFiles] = useState<number[]>([])\n const [fileToChange, setFileToChange] = useState<number | null>(null)\n\n const handleToggleSelect = (index: number) => {\n let newSelectedFiles: number[] = selectedFiles\n if (selectedFiles.includes(index)) {\n newSelectedFiles = selectedFiles.filter(\n (selectedFiles) => selectedFiles !== index,\n )\n } else {\n newSelectedFiles = [...selectedFiles, index]\n }\n setSelectedFiles(newSelectedFiles)\n }\n\n const handleUpload = (file: File) => {\n const fileListCopy = [...files]\n if (fileToChange !== null) {\n fileListCopy[fileToChange] = file\n setFiles?.(fileListCopy)\n setFileToChange(null)\n }\n }\n\n useEffect(() => {\n setSelectedFiles([])\n }, [onDelete])\n\n return (\n <Styles.FileListPreviewContainer\n data-testid=\"file-list-preview\"\n width=\"100%\"\n {...rest}\n >\n {files.length > 0 && (\n <Box gap={2} alignItems=\"center\" marginTop={2}>\n <Text size=\"small\" color={theme.colors.grey_2}>\n {selectedFiles.length ?? 0} selecionados\n </Text>\n {selectedFiles.length > 0 && (\n <Button\n fontSize={theme.typography.body_size.small}\n variant=\"text\"\n padding=\"0\"\n color={theme.colors.grey_1}\n onClick={() => selectedFiles && onDelete?.(selectedFiles)}\n disabled={selectedFiles.length === 0}\n >\n Deletar\n </Button>\n )}\n </Box>\n )}\n\n {files.map((file, index) => (\n <FilePreview\n file={file}\n key={`file-preview-${index}`}\n onChange={handleUpload}\n onClickInput={() => setFileToChange(index)}\n selectable\n isSelected={selectedFiles.includes(index)}\n onSelect={() => handleToggleSelect(index)}\n onDelete={() => onDelete?.([index])}\n showImage={showImages}\n />\n ))}\n\n {defaultFiles && defaultFiles.length > 0 && (\n <Styles.DefaultFilesContainer\n direction=\"column\"\n marginTop={2}\n width=\"100%\"\n paddingY={2}\n gap={1}\n data-testid=\"default-files\"\n >\n <Text size=\"small\" color={theme.colors.grey_2}>\n Adicionados anteriormente\n </Text>\n {defaultFiles?.map((file, index) => {\n return (\n <FilePreview\n file={file}\n onDelete={() => onDeleteDefaultFile?.(index)}\n showImage={showImages}\n key={`default-file-${index}`}\n />\n )\n })}\n </Styles.DefaultFilesContainer>\n )}\n </Styles.FileListPreviewContainer>\n )\n}\n"],"names":["FilePreviewList","files","showImages","setFiles","onDelete","defaultFiles","onDeleteDefaultFile","rest","theme","useTheme","selectedFiles","setSelectedFiles","useState","fileToChange","setFileToChange","handleUpload","file","fileListCopy","useEffect","_jsxs","Styles","width","children","length","Box","gap","alignItems","marginTop","jsxs","Text","size","color","colors","grey_2","_jsx","Button","fontSize","typography","body_size","small","variant","padding","grey_1","onClick","disabled","map","index","jsx","FilePreview","onChange","onClickInput","selectable","isSelected","includes","onSelect","newSelectedFiles","filter","handleToggleSelect","showImage","direction","paddingY"],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-preview-list.comp.js","sources":["../../../../../../src/components/forms/file/file-preview-list/file-preview-list.comp.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\n\nimport { useTheme } from 'styled-components'\n\nimport { Button } from '../../../buttons'\nimport { Box } from '../../../layout'\nimport { Text } from '../../../typography'\nimport { FilePreview } from '../file-preview/file-preview.comp'\n\nimport { FilePreviewListProps } from './file-preview-list.types'\n\nimport * as Styles from './file-preview-list.styles'\n\n/**\n * Lista dos arquivos enviados, com nome, ícone do tipo e excluir. `defaultFiles` mostra arquivos que já estavam salvos (URLs).\n * Normalmente vem pronta dentro do FileDropzone com `multiple` e `preview=\"list\"`.\n * @example <FilePreviewList files={arquivos} setFiles={setArquivos} />\n */\nexport const FilePreviewList = ({\n files,\n showImages = false,\n setFiles,\n onDelete,\n defaultFiles,\n onDeleteDefaultFile,\n ...rest\n}: FilePreviewListProps) => {\n const theme = useTheme()\n const [selectedFiles, setSelectedFiles] = useState<number[]>([])\n const [fileToChange, setFileToChange] = useState<number | null>(null)\n\n const handleToggleSelect = (index: number) => {\n let newSelectedFiles: number[] = selectedFiles\n if (selectedFiles.includes(index)) {\n newSelectedFiles = selectedFiles.filter(\n (selectedFiles) => selectedFiles !== index,\n )\n } else {\n newSelectedFiles = [...selectedFiles, index]\n }\n setSelectedFiles(newSelectedFiles)\n }\n\n const handleUpload = (file: File) => {\n const fileListCopy = [...files]\n if (fileToChange !== null) {\n fileListCopy[fileToChange] = file\n setFiles?.(fileListCopy)\n setFileToChange(null)\n }\n }\n\n useEffect(() => {\n setSelectedFiles([])\n }, [onDelete])\n\n return (\n <Styles.FileListPreviewContainer\n data-testid=\"file-list-preview\"\n width=\"100%\"\n {...rest}\n >\n {files.length > 0 && (\n <Box gap={2} alignItems=\"center\" marginTop={2}>\n <Text size=\"small\" color={theme.colors.grey_2}>\n {selectedFiles.length ?? 0} selecionados\n </Text>\n {selectedFiles.length > 0 && (\n <Button\n fontSize={theme.typography.body_size.small}\n variant=\"text\"\n padding=\"0\"\n color={theme.colors.grey_1}\n onClick={() => selectedFiles && onDelete?.(selectedFiles)}\n disabled={selectedFiles.length === 0}\n >\n Deletar\n </Button>\n )}\n </Box>\n )}\n\n {files.map((file, index) => (\n <FilePreview\n file={file}\n key={`file-preview-${index}`}\n onChange={handleUpload}\n onClickInput={() => setFileToChange(index)}\n selectable\n isSelected={selectedFiles.includes(index)}\n onSelect={() => handleToggleSelect(index)}\n onDelete={() => onDelete?.([index])}\n showImage={showImages}\n />\n ))}\n\n {defaultFiles && defaultFiles.length > 0 && (\n <Styles.DefaultFilesContainer\n direction=\"column\"\n marginTop={2}\n width=\"100%\"\n paddingY={2}\n gap={1}\n data-testid=\"default-files\"\n >\n <Text size=\"small\" color={theme.colors.grey_2}>\n Adicionados anteriormente\n </Text>\n {defaultFiles?.map((file, index) => {\n return (\n <FilePreview\n file={file}\n onDelete={() => onDeleteDefaultFile?.(index)}\n showImage={showImages}\n key={`default-file-${index}`}\n />\n )\n })}\n </Styles.DefaultFilesContainer>\n )}\n </Styles.FileListPreviewContainer>\n )\n}\n"],"names":["FilePreviewList","files","showImages","setFiles","onDelete","defaultFiles","onDeleteDefaultFile","rest","theme","useTheme","selectedFiles","setSelectedFiles","useState","fileToChange","setFileToChange","handleUpload","file","fileListCopy","useEffect","_jsxs","Styles","width","children","length","Box","gap","alignItems","marginTop","jsxs","Text","size","color","colors","grey_2","_jsx","Button","fontSize","typography","body_size","small","variant","padding","grey_1","onClick","disabled","map","index","jsx","FilePreview","onChange","onClickInput","selectable","isSelected","includes","onSelect","newSelectedFiles","filter","handleToggleSelect","showImage","direction","paddingY"],"mappings":"2WAkB+BA,EAC7BC,QACAC,cAAa,EACbC,WACAC,WACAC,eACAC,yBACGC,MAEH,MAAMC,EAAQC,EAAAA,YACPC,EAAeC,GAAoBC,EAAQA,SAAW,KACtDC,EAAcC,GAAmBF,EAAQA,SAAgB,MAc1DG,EAAgBC,IACpB,MAAMC,EAAe,IAAIhB,GACJ,OAAjBY,IACFI,EAAaJ,GAAgBG,EAC7Bb,IAAWc,GACXH,EAAgB,MAClB,EAOF,OAJAI,EAAAA,WAAU,KACRP,EAAiB,GAAG,GACnB,CAACP,IAGFe,EAAAA,KAACC,EAAAA,yBAA+B,CAAA,cAClB,oBACZC,MAAM,UACFd,EAAIe,SAAA,CAEPrB,EAAMsB,OAAS,GACdJ,EAAAA,KAACK,EAAAA,IAAG,CAACC,IAAK,EAAGC,WAAW,SAASC,UAAW,EAACL,SAAA,CAC3CH,EAACS,KAAAC,OAAK,CAAAC,KAAK,QAAQC,MAAOvB,EAAMwB,OAAOC,OACpCX,SAAA,CAAAZ,EAAca,QAAU,EACpB,mBACNb,EAAca,OAAS,GACtBW,EAAAA,IAACC,EAAAA,OACC,CAAAC,SAAU5B,EAAM6B,WAAWC,UAAUC,MACrCC,QAAQ,OACRC,QAAQ,IACRV,MAAOvB,EAAMwB,OAAOU,OACpBC,QAASA,IAAMjC,GAAiBN,IAAWM,GAC3CkC,SAAmC,IAAzBlC,EAAca,OAGjBD,SAAA,eAKdrB,EAAM4C,KAAI,CAAC7B,EAAM8B,IAChBZ,EAACa,IAAAC,cACC,CAAAhC,KAAMA,EAENiC,SAAUlC,EACVmC,aAAcA,IAAMpC,EAAgBgC,GACpCK,YACA,EAAAC,WAAY1C,EAAc2C,SAASP,GACnCQ,SAAUA,IA3DUR,KAC1B,IAAIS,EAA6B7C,EAE/B6C,EADE7C,EAAc2C,SAASP,GACNpC,EAAc8C,QAC9B9C,GAAkBA,IAAkBoC,IAGpB,IAAIpC,EAAeoC,GAExCnC,EAAiB4C,EAAiB,EAkDZE,CAAmBX,GACnC1C,SAAUA,IAAMA,IAAW,CAAC0C,IAC5BY,UAAWxD,GAPN,gBAAgB4C,OAWxBzC,GAAgBA,EAAakB,OAAS,GACrCJ,EAAAA,KAACC,EAAAA,sBACC,CAAAuC,UAAU,SACVhC,UAAW,EACXN,MAAM,OACNuC,SAAU,EACVnC,IAAK,EAAC,cACM,gBAAeH,SAAA,CAE3BY,EAACa,IAAAlB,OAAK,CAAAC,KAAK,QAAQC,MAAOvB,EAAMwB,OAAOC,OAEhCX,SAAA,8BACNjB,GAAcwC,KAAI,CAAC7B,EAAM8B,IAEtBZ,EAAAA,IAACc,EAAAA,YAAW,CACVhC,KAAMA,EACNZ,SAAUA,IAAME,IAAsBwC,GACtCY,UAAWxD,GACN,gBAAgB4C,YAMC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.comp.js","sources":["../../../../../src/components/icons/icon/icon.comp.tsx"],"sourcesContent":["import React, { useContext, useId } from 'react'\n\nimport * as LucideIcon from 'react-icons/lu'\nimport * as RemixIcon from 'react-icons/ri'\nimport { ThemeContext } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme/theme.util'\n\nimport { IconProps, CustomIconName } from './icon.types'\nimport {\n isLucideName,\n parseIconNameToLucide,\n parseIconNameToRemixIcon,\n} from './icon.utils'\nimport { iconsList } from './svg'\n\nimport * as Styles from './icon.styles'\n\nexport const Icon = ({\n color,\n name,\n size = 24,\n fill: fillProp,\n defs: defsProp,\n gradient,\n ...props\n}: IconProps) => {\n const theme = useContext(ThemeContext)\n const gradientId = `bf-icon-gradient-${useId().replace(/:/g, '')}`\n\n const fill = gradient ? `url(#${gradientId})` : fillProp\n const defs = gradient ? (\n <defs>\n <linearGradient id={gradientId} x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" stopColor={getThemeColor('secondary', theme)} />\n <stop offset=\"100%\" stopColor={getThemeColor('primary', theme)} />\n </linearGradient>\n </defs>\n ) : (\n defsProp\n )\n\n const customIcon = iconsList(\n gradient\n ? `url(#${gradientId})`\n : getThemeColor(color ? color : 'primary', theme),\n size,\n )[name as CustomIconName]\n\n if (customIcon) {\n if (gradient) {\n return (\n <Styles.IconComp data-testid=\"icon\">\n <Styles.HiddenDefs aria-hidden=\"true\">{defs}</Styles.HiddenDefs>\n {customIcon}\n </Styles.IconComp>\n )\n }\n if (defs && React.isValidElement(customIcon)) {\n const children = (customIcon as React.ReactElement).props.children\n return (\n <Styles.IconComp data-testid=\"icon\">\n {React.cloneElement(customIcon, {}, [\n defs,\n ...(Array.isArray(children)\n ? children\n : children\n ? [children]\n : []),\n ])}\n </Styles.IconComp>\n )\n }\n return <Styles.IconComp data-testid=\"icon\">{customIcon}</Styles.IconComp>\n }\n\n if (isLucideName(name)) {\n const lucideIcon = LucideIcon[parseIconNameToLucide(name)]\n\n if (!lucideIcon) {\n return null\n }\n\n // Lucide desenha com traço: o gradiente (ou `fill` com `defs`) pinta o `stroke`.\n if (defs && fill) {\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n <Styles.HiddenDefs aria-hidden=\"true\">{defs}</Styles.HiddenDefs>\n {React.createElement(lucideIcon, { size, stroke: fill })}\n </Styles.IconComp>\n )\n }\n\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n {React.createElement(lucideIcon, {\n color: getThemeColor(color ? color : 'primary', theme) || color,\n size,\n })}\n </Styles.IconComp>\n )\n }\n\n const remixIcon = RemixIcon[parseIconNameToRemixIcon(name as string)]\n\n if (!remixIcon) {\n return null\n }\n\n if (defs && fill) {\n return (\n <Styles.IconComp data-testid=\"icon\">\n <svg\n width={`${size}px`}\n height={`${size}px`}\n viewBox={`0 0 ${size} ${size}`}\n fill={fill}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {defs}\n {React.createElement(remixIcon, {\n size: size,\n fill: fill,\n style: { position: 'relative', zIndex: 1 },\n })}\n </svg>\n </Styles.IconComp>\n )\n }\n\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n {React.createElement(remixIcon, {\n color: getThemeColor(color ? color : 'primary', theme) || color,\n size: size,\n })}\n </Styles.IconComp>\n )\n}\n"],"names":["Icon","color","name","size","fill","fillProp","defs","defsProp","gradient","props","theme","useContext","ThemeContext","gradientId","useId","replace","_jsx","jsx","children","_jsxs","jsxs","id","x1","y1","x2","y2","offset","stopColor","getThemeColor","customIcon","iconsList","Styles","React","isValidElement","cloneElement","Array","isArray","isLucideName","lucideIcon","LucideIcon","parseIconNameToLucide","createElement","stroke","remixIcon","RemixIcon","parseIconNameToRemixIcon","width","height","viewBox","xmlns","style","position","zIndex"],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon.comp.js","sources":["../../../../../src/components/icons/icon/icon.comp.tsx"],"sourcesContent":["import React, { useContext, useId } from 'react'\n\nimport * as LucideIcon from 'react-icons/lu'\nimport * as RemixIcon from 'react-icons/ri'\nimport { ThemeContext } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme/theme.util'\n\nimport { IconProps, CustomIconName } from './icon.types'\nimport {\n isLucideName,\n parseIconNameToLucide,\n parseIconNameToRemixIcon,\n} from './icon.utils'\nimport { iconsList } from './svg'\n\nimport * as Styles from './icon.styles'\n\n/**\n * Ícone da biblioteca do DS pelo nome: ícones próprios da Blockforce, Remix e Lucide (`lu:nome`).\n * `color` usa as cores do tema e `gradient` pinta com o gradiente da marca. A lista de nomes está em `lib/ai/icons.txt`.\n * Para ícone clicável use IconButton; para ícone dentro de uma caixinha use IconBox.\n * @example <Icon name=\"leaf\" size={20} color=\"primary\" />\n */\nexport const Icon = ({\n color,\n name,\n size = 24,\n fill: fillProp,\n defs: defsProp,\n gradient,\n ...props\n}: IconProps) => {\n const theme = useContext(ThemeContext)\n const gradientId = `bf-icon-gradient-${useId().replace(/:/g, '')}`\n\n const fill = gradient ? `url(#${gradientId})` : fillProp\n const defs = gradient ? (\n <defs>\n <linearGradient id={gradientId} x1=\"1\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" stopColor={getThemeColor('secondary', theme)} />\n <stop offset=\"100%\" stopColor={getThemeColor('primary', theme)} />\n </linearGradient>\n </defs>\n ) : (\n defsProp\n )\n\n const customIcon = iconsList(\n gradient\n ? `url(#${gradientId})`\n : getThemeColor(color ? color : 'primary', theme),\n size,\n )[name as CustomIconName]\n\n if (customIcon) {\n if (gradient) {\n return (\n <Styles.IconComp data-testid=\"icon\">\n <Styles.HiddenDefs aria-hidden=\"true\">{defs}</Styles.HiddenDefs>\n {customIcon}\n </Styles.IconComp>\n )\n }\n if (defs && React.isValidElement(customIcon)) {\n const children = (customIcon as React.ReactElement).props.children\n return (\n <Styles.IconComp data-testid=\"icon\">\n {React.cloneElement(customIcon, {}, [\n defs,\n ...(Array.isArray(children)\n ? children\n : children\n ? [children]\n : []),\n ])}\n </Styles.IconComp>\n )\n }\n return <Styles.IconComp data-testid=\"icon\">{customIcon}</Styles.IconComp>\n }\n\n if (isLucideName(name)) {\n const lucideIcon = LucideIcon[parseIconNameToLucide(name)]\n\n if (!lucideIcon) {\n return null\n }\n\n // Lucide desenha com traço: o gradiente (ou `fill` com `defs`) pinta o `stroke`.\n if (defs && fill) {\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n <Styles.HiddenDefs aria-hidden=\"true\">{defs}</Styles.HiddenDefs>\n {React.createElement(lucideIcon, { size, stroke: fill })}\n </Styles.IconComp>\n )\n }\n\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n {React.createElement(lucideIcon, {\n color: getThemeColor(color ? color : 'primary', theme) || color,\n size,\n })}\n </Styles.IconComp>\n )\n }\n\n const remixIcon = RemixIcon[parseIconNameToRemixIcon(name as string)]\n\n if (!remixIcon) {\n return null\n }\n\n if (defs && fill) {\n return (\n <Styles.IconComp data-testid=\"icon\">\n <svg\n width={`${size}px`}\n height={`${size}px`}\n viewBox={`0 0 ${size} ${size}`}\n fill={fill}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n {defs}\n {React.createElement(remixIcon, {\n size: size,\n fill: fill,\n style: { position: 'relative', zIndex: 1 },\n })}\n </svg>\n </Styles.IconComp>\n )\n }\n\n return (\n <Styles.IconComp data-testid=\"icon\" {...props}>\n {React.createElement(remixIcon, {\n color: getThemeColor(color ? color : 'primary', theme) || color,\n size: size,\n })}\n </Styles.IconComp>\n )\n}\n"],"names":["Icon","color","name","size","fill","fillProp","defs","defsProp","gradient","props","theme","useContext","ThemeContext","gradientId","useId","replace","_jsx","jsx","children","_jsxs","jsxs","id","x1","y1","x2","y2","offset","stopColor","getThemeColor","customIcon","iconsList","Styles","React","isValidElement","cloneElement","Array","isArray","isLucideName","lucideIcon","LucideIcon","parseIconNameToLucide","createElement","stroke","remixIcon","RemixIcon","parseIconNameToRemixIcon","width","height","viewBox","xmlns","style","position","zIndex"],"mappings":"6jBAwBoBA,EAClBC,QACAC,OACAC,OAAO,GACPC,KAAMC,EACNC,KAAMC,EACNC,cACGC,MAEH,MAAMC,EAAQC,aAAWC,EAAAA,cACnBC,EAAiC,oBAAAC,EAAKA,QAAGC,QAAQ,KAAM,MAEvDX,EAAOI,EAAmB,QAAAK,KAAgBR,EAC1CC,EAAOE,EACXQ,EAAAC,IAAA,OAAA,CAAAC,SACEC,EAAgBC,KAAA,iBAAA,CAAAC,GAAIR,EAAYS,GAAG,IAAIC,GAAG,IAAIC,GAAG,IAAIC,GAAG,IACtDP,SAAA,CAAAF,EAAAC,IAAA,OAAA,CAAMS,OAAO,KAAKC,UAAWC,EAAAA,cAAc,YAAalB,KACxDM,EAAMC,IAAA,OAAA,CAAAS,OAAO,OAAOC,UAAWC,EAAAA,cAAc,UAAWlB,UAI5DH,EAGIsB,EAAaC,EAAAA,UACjBtB,EACY,QAAAK,KACRe,EAAaA,cAAC3B,GAAgB,UAAWS,GAC7CP,GACAD,GAEF,GAAI2B,EAAY,CACd,GAAIrB,EACF,OACEW,EAAAA,KAACY,EAAAA,SAA4B,CAAA,cAAA,iBAC3Bf,EAACC,IAAAc,aAAiB,CAAA,cAAa,OAAQb,SAAAZ,IACtCuB,KAIP,GAAIvB,GAAQ0B,EAAMC,eAAeJ,GAAa,CAC5C,MAAMX,EAAYW,EAAkCpB,MAAMS,SAC1D,OACEF,EAAAA,IAACe,EAAAA,SAA4B,CAAA,cAAA,OAC1Bb,SAAAc,EAAME,aAAaL,EAAY,CAAE,EAAE,CAClCvB,KACI6B,MAAMC,QAAQlB,GACdA,EACAA,EACE,CAACA,GACD,MAId,CACA,OAAOF,EAAAA,IAACe,EAAAA,wBAA4B,OAAMb,SAAEW,GAC9C,CAEA,GAAIQ,EAAAA,aAAanC,GAAO,CACtB,MAAMoC,EAAaC,EAAWC,wBAAsBtC,IAEpD,OAAKoC,EAKDhC,GAAQF,EAERe,EAAAA,KAACY,EAAAA,wBAA4B,UAAWtB,EAAKS,SAAA,CAC3CF,MAACe,aAAiB,CAAA,cAAa,OAAQb,SAAAZ,IACtC0B,EAAMS,cAAcH,EAAY,CAAEnC,OAAMuC,OAAQtC,OAMrDY,EAAAA,IAACe,EAAAA,SAA4B,CAAA,cAAA,UAAWtB,WACrCuB,EAAMS,cAAcH,EAAY,CAC/BrC,MAAO2B,EAAaA,cAAC3B,GAAgB,UAAWS,IAAUT,EAC1DE,WAjBG,IAqBX,CAEA,MAAMwC,EAAYC,EAAUC,2BAAyB3C,IAErD,OAAKyC,EAIDrC,GAAQF,EAERY,EAAAA,IAACe,EAAAA,SAA4B,CAAA,cAAA,gBAC3BZ,EACEC,KAAA,MAAA,CAAA0B,MAAU,GAAA3C,MACV4C,OAAW,GAAA5C,MACX6C,QAAgB,OAAA7C,KAAQA,IACxBC,KAAMA,EACN6C,MAAM,6BAA4B/B,SAAA,CAEjCZ,EACA0B,EAAMS,cAAcE,EAAW,CAC9BxC,KAAMA,EACNC,KAAMA,EACN8C,MAAO,CAAEC,SAAU,WAAYC,OAAQ,UAQ/CpC,EAAAA,IAACe,EAAAA,SAA4B,CAAA,cAAA,UAAWtB,WACrCuB,EAAMS,cAAcE,EAAW,CAC9B1C,MAAO2B,EAAaA,cAAC3B,GAAgB,UAAWS,IAAUT,EAC1DE,KAAMA,MA5BH,IA8BW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var r=require("styled-components"),e=require("../box/box.comp.js");const
|
|
1
|
+
"use strict";var r=require("styled-components"),e=require("../box/box.comp.js"),t=require("../../../theme/scrollbar.js");const o=r.styled(e.Box)`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
transition:
|
|
12
12
|
opacity 0.3s ease,
|
|
13
13
|
visibility 0.3s ease;
|
|
14
|
-
`,
|
|
14
|
+
`,s=r.styled(e.Box).attrs((({$transform:r})=>({style:{transform:r}})))`
|
|
15
15
|
position: absolute;
|
|
16
16
|
background-color: transparent;
|
|
17
17
|
transition: transform 0.3s ease;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
border-radius: 1rem 1rem 0 0;
|
|
53
53
|
box-shadow: ${s.shadow.lg};
|
|
54
54
|
`}}}
|
|
55
|
-
`,
|
|
55
|
+
`,a=r.styled(e.Box)`
|
|
56
56
|
position: sticky;
|
|
57
57
|
top: 0;
|
|
58
58
|
flex-shrink: 0;
|
|
@@ -77,17 +77,19 @@
|
|
|
77
77
|
width: 100%;
|
|
78
78
|
border-radius: 1rem 1rem 0 0;
|
|
79
79
|
`}}};
|
|
80
|
-
`,
|
|
80
|
+
`,i=r.styled(e.Box)`
|
|
81
81
|
width: 100%;
|
|
82
82
|
height: 100%;
|
|
83
83
|
flex: 1;
|
|
84
84
|
overflow: auto;
|
|
85
|
+
${t.thinScrollbar}
|
|
85
86
|
flex-direction: column;
|
|
86
87
|
background-color: ${({theme:r})=>r.colors.white};
|
|
87
88
|
& > div {
|
|
88
89
|
overflow: auto;
|
|
90
|
+
${t.thinScrollbar}
|
|
89
91
|
display: flex;
|
|
90
92
|
flex-direction: column;
|
|
91
93
|
}
|
|
92
|
-
`,
|
|
94
|
+
`,n=r.styled(e.Box).attrs((({$dragging:r})=>({style:{cursor:r?"grabbing":"grab",transition:r?"none":"transform 0.2s ease"}})))``;exports.DragArea=n,exports.DrawerButton=a,exports.DrawerChildren=i,exports.DrawerContainer=s,exports.Overlay=o;
|
|
93
95
|
//# sourceMappingURL=drawer.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.styles.js","sources":["../../../../../src/components/layout/drawer/drawer.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { Box } from '../box'\n\nexport const Overlay = styled(Box)<{\n open: boolean\n}>`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n z-index: ${({ theme }) => theme.zIndex?.drawer ?? 1100};\n opacity: ${({ open }) => (open ? 1 : 0)};\n visibility: ${({ open }) => (open ? 'visible' : 'hidden')};\n transition:\n opacity 0.3s ease,\n visibility 0.3s ease;\n`\n\nexport const DrawerContainer = styled(Box).attrs<{ $transform?: string }>(\n ({ $transform }) => ({ style: { transform: $transform } }),\n)<{\n open: boolean\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n height?: string | number\n}>`\n position: absolute;\n background-color: transparent;\n transition: transform 0.3s ease;\n cursor: pointer;\n max-width: 100%;\n box-sizing: border-box;\n\n ${({ open, $anchor, height, theme }) => {\n switch ($anchor) {\n case 'left':\n return css`\n top: 0;\n left: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(-100%)'};\n border-radius: 0 1rem 1rem 0;\n box-shadow: ${theme.shadow.lg};\n `\n case 'right':\n return css`\n top: 0;\n right: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(100%)'};\n border-radius: 1rem 0 0 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'top':\n return css`\n top: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(-100%)'};\n border-radius: 0 0 1rem 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'bottom':\n default:\n return css`\n bottom: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(100%)'};\n border-radius: 1rem 1rem 0 0;\n box-shadow: ${theme.shadow.lg};\n `\n }\n }}\n`\n\nexport const DrawerButton = styled(Box)<{\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n}>`\n position: sticky;\n top: 0;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n padding: 0.25rem;\n background-color: ${({ theme }) => theme.colors.grey_5};\n min-height: 1.5rem;\n\n ${({ $anchor }) => {\n switch ($anchor) {\n case 'left':\n return css`\n border-radius: 0 1rem 1rem 0;\n height: 100%;\n width: 2rem;\n `\n case 'right':\n return css`\n border-radius: 1rem 0 0 1rem;\n height: 100%;\n width: 2rem;\n `\n case 'top':\n return css`\n width: 100%;\n border-radius: 0 0 1rem 1rem;\n `\n case 'bottom':\n default:\n return css`\n width: 100%;\n border-radius: 1rem 1rem 0 0;\n `\n }\n }};\n`\n\nexport const DrawerChildren = styled(Box)`\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: auto;\n flex-direction: column;\n background-color: ${({ theme }) => theme.colors.white};\n & > div {\n overflow: auto;\n display: flex;\n flex-direction: column;\n }\n`\n\nexport const DragArea = styled(Box).attrs<{ $dragging: boolean }>(\n ({ $dragging }) => ({\n style: {\n cursor: $dragging ? 'grabbing' : 'grab',\n transition: $dragging ? 'none' : 'transform 0.2s ease',\n },\n }),\n)``\n"],"names":["Overlay","styled","Box","theme","zIndex","drawer","open","DrawerContainer","attrs","$transform","style","transform","$anchor","height","css","shadow","lg","DrawerButton","colors","grey_5","DrawerChildren","white","DragArea","$dragging","cursor","transition"],"mappings":"
|
|
1
|
+
{"version":3,"file":"drawer.styles.js","sources":["../../../../../src/components/layout/drawer/drawer.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { thinScrollbar } from '../../../theme'\nimport { Box } from '../box'\n\nexport const Overlay = styled(Box)<{\n open: boolean\n}>`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n z-index: ${({ theme }) => theme.zIndex?.drawer ?? 1100};\n opacity: ${({ open }) => (open ? 1 : 0)};\n visibility: ${({ open }) => (open ? 'visible' : 'hidden')};\n transition:\n opacity 0.3s ease,\n visibility 0.3s ease;\n`\n\nexport const DrawerContainer = styled(Box).attrs<{ $transform?: string }>(\n ({ $transform }) => ({ style: { transform: $transform } }),\n)<{\n open: boolean\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n height?: string | number\n}>`\n position: absolute;\n background-color: transparent;\n transition: transform 0.3s ease;\n cursor: pointer;\n max-width: 100%;\n box-sizing: border-box;\n\n ${({ open, $anchor, height, theme }) => {\n switch ($anchor) {\n case 'left':\n return css`\n top: 0;\n left: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(-100%)'};\n border-radius: 0 1rem 1rem 0;\n box-shadow: ${theme.shadow.lg};\n `\n case 'right':\n return css`\n top: 0;\n right: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(100%)'};\n border-radius: 1rem 0 0 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'top':\n return css`\n top: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(-100%)'};\n border-radius: 0 0 1rem 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'bottom':\n default:\n return css`\n bottom: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(100%)'};\n border-radius: 1rem 1rem 0 0;\n box-shadow: ${theme.shadow.lg};\n `\n }\n }}\n`\n\nexport const DrawerButton = styled(Box)<{\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n}>`\n position: sticky;\n top: 0;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n padding: 0.25rem;\n background-color: ${({ theme }) => theme.colors.grey_5};\n min-height: 1.5rem;\n\n ${({ $anchor }) => {\n switch ($anchor) {\n case 'left':\n return css`\n border-radius: 0 1rem 1rem 0;\n height: 100%;\n width: 2rem;\n `\n case 'right':\n return css`\n border-radius: 1rem 0 0 1rem;\n height: 100%;\n width: 2rem;\n `\n case 'top':\n return css`\n width: 100%;\n border-radius: 0 0 1rem 1rem;\n `\n case 'bottom':\n default:\n return css`\n width: 100%;\n border-radius: 1rem 1rem 0 0;\n `\n }\n }};\n`\n\nexport const DrawerChildren = styled(Box)`\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: auto;\n ${thinScrollbar}\n flex-direction: column;\n background-color: ${({ theme }) => theme.colors.white};\n & > div {\n overflow: auto;\n ${thinScrollbar}\n display: flex;\n flex-direction: column;\n }\n`\n\nexport const DragArea = styled(Box).attrs<{ $dragging: boolean }>(\n ({ $dragging }) => ({\n style: {\n cursor: $dragging ? 'grabbing' : 'grab',\n transition: $dragging ? 'none' : 'transform 0.2s ease',\n },\n }),\n)``\n"],"names":["Overlay","styled","Box","theme","zIndex","drawer","open","DrawerContainer","attrs","$transform","style","transform","$anchor","height","css","shadow","lg","DrawerButton","colors","grey_5","DrawerChildren","thinScrollbar","white","DragArea","$dragging","cursor","transition"],"mappings":"+HAKaA,EAAUC,EAAAA,OAAOC,EAAAA,IAE5B;;;;;;;aAOW,EAAGC,WAAYA,EAAMC,QAAQC,QAAU;aACvC,EAAGC,UAAYA,EAAO,EAAI;gBACvB,EAAGA,UAAYA,EAAO,UAAY;;;;EAMrCC,EAAkBN,EAAMA,OAACC,OAAKM,OACzC,EAAGC,iBAAkB,CAAEC,MAAO,CAAEC,UAAWF,MAK3C;;;;;;;;IAQE,EAAGH,OAAMM,UAASC,SAAQV,YAC1B,OAAQS,GACN,IAAK,OACH,OAAOE,KAAG;;;;mBAImB,iBAAXD,EAAyB,GAAAA,MAAaA;uBACzCP,EAAO,gBAAkB;;wBAExBH,EAAMY,OAAOC;UAE/B,IAAK,QACH,OAAOF,KAAG;;;;mBAImB,iBAAXD,EAAyB,GAAAA,MAAaA;uBACzCP,EAAO,gBAAkB;;wBAExBH,EAAMY,OAAOC;UAE/B,IAAK,MACH,OAAOF,KAAG;;;;oBAIoB,iBAAXD,EAAyB,GAAAA,MAAaA;uBAC1CP,EAAO,gBAAkB;;wBAExBH,EAAMY,OAAOC;UAG/B,QACE,OAAOF,KAAG;;;;oBAIoB,iBAAXD,EAAyB,GAAAA,MAAaA;uBAC1CP,EAAO,gBAAkB;;wBAExBH,EAAMY,OAAOC;UAEjC;EAISC,EAAehB,EAAAA,OAAOC,EAAAA,IAEjC;;;;;;;sBAOoB,EAAGC,WAAYA,EAAMe,OAAOC;;;IAG9C,EAAGP,cACH,OAAQA,GACN,IAAK,OACH,OAAOE,KAAG;;;;UAKZ,IAAK,QACH,OAAOA,KAAG;;;;UAKZ,IAAK,MACH,OAAOA,KAAG;;;UAKZ,QACE,OAAOA,KAAG;;;UAId;EAISM,EAAiBnB,EAAAA,OAAOC,EAAAA,IAAI;;;;;IAKrCmB;;sBAEkB,EAAGlB,WAAYA,EAAMe,OAAOI;;;MAG5CD;;;;EAMOE,EAAWtB,EAAMA,OAACC,OAAKM,OAClC,EAAGgB,gBAAiB,CAClBd,MAAO,CACLe,OAAQD,EAAY,WAAa,OACjCE,WAAYF,EAAY,OAAS,0BAGtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("styled-components"),t=require("../../../theme/theme.util.js");const o=e.styled.div`
|
|
1
|
+
"use strict";var e=require("styled-components"),t=require("../../../theme/scrollbar.js"),i=require("../../../theme/theme.util.js");const o=e.styled.div`
|
|
2
2
|
display: ${e=>e.open?"flex":"none"};
|
|
3
3
|
position: fixed;
|
|
4
4
|
top: 0;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
opacity: 1;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
`,
|
|
23
|
+
`,a=e.styled.div`
|
|
24
24
|
position: fixed;
|
|
25
25
|
width: 100%;
|
|
26
26
|
height: 100%;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
gap: 1rem;
|
|
37
|
-
background-color: ${e=>
|
|
37
|
+
background-color: ${e=>i.getThemeColor(e.theme.colors.custom.white,e.theme)};
|
|
38
38
|
border-radius: 1rem;
|
|
39
39
|
box-shadow: ${({theme:e})=>e.shadow.lg};
|
|
40
40
|
position: fixed;
|
|
@@ -61,24 +61,13 @@
|
|
|
61
61
|
transform: translate(-50%, -50%) scale(1);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
`,
|
|
64
|
+
`,n=e.styled.div`
|
|
65
65
|
display: flex;
|
|
66
66
|
justify-content: space-between;
|
|
67
|
-
`,
|
|
68
|
-
&::-webkit-scrollbar {
|
|
69
|
-
width: 10px;
|
|
70
|
-
}
|
|
71
|
-
&::-webkit-scrollbar-track {
|
|
72
|
-
background: ${e=>t.getThemeColor(e.theme.colors.grey_5,e.theme)};
|
|
73
|
-
}
|
|
74
|
-
&::-webkit-scrollbar-thumb {
|
|
75
|
-
background: ${e=>t.getThemeColor(e.theme.colors.grey_4,e.theme)};
|
|
76
|
-
}
|
|
77
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
78
|
-
background: ${e=>t.getThemeColor(e.theme.colors.grey_3,e.theme)};
|
|
79
|
-
}
|
|
67
|
+
`,d=e.styled.div`
|
|
80
68
|
display: flex;
|
|
81
69
|
height: 100%;
|
|
82
70
|
overflow: auto;
|
|
83
|
-
|
|
71
|
+
${t.thinScrollbar}
|
|
72
|
+
`;exports.Background=a,exports.ModalCard=r,exports.ModalComp=o,exports.ModalContent=d,exports.ModalHeader=n;
|
|
84
73
|
//# sourceMappingURL=modal.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.styles.js","sources":["../../../../../src/components/layout/modal/modal.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nexport const ModalComp = styled.div<{\n open: boolean\n}>`\n display: ${(props) => (props.open ? 'flex' : 'none')};\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n z-index: ${({ theme }) => theme.zIndex?.modal ?? 1200};\n flex-direction: column;\n\n animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);\n\n @keyframes overlayShow {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n`\n\nexport const Background = styled.div`\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.534);\n z-index: -1;\n`\n\nexport const ModalCard = styled.div.withConfig({\n shouldForwardProp: (prop) =>\n !['minWidth', 'minHeight', 'maxWidth', 'maxHeight'].includes(prop),\n})<{\n width?: string\n minWidth?: string\n height?: string\n minHeight?: string\n maxWidth?: string\n maxHeight?: string\n}>`\n &:focus {\n outline: none;\n }\n\n display: flex;\n flex-direction: column;\n gap: 1rem;\n background-color: ${(props) =>\n getThemeColor(props.theme.colors.custom.white, props.theme)};\n border-radius: 1rem;\n box-shadow: ${({ theme }) => theme.shadow.lg};\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: ${(props) => props.width};\n min-width: ${(props) => props.minWidth ?? '300px'};\n max-width: ${(props) => props.maxWidth ?? '90vw'};\n height: ${(props) => props.height};\n min-height: ${(props) => props.minHeight};\n max-height: ${(props) => props.maxHeight ?? '90vh'};\n padding: ${(props) => props.theme.spacing['3']};\n animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);\n\n @keyframes contentShow {\n from {\n opacity: 0;\n transform: translate(-50%, -48%) scale(0.96);\n }\n\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n }\n`\nexport const ModalHeader = styled.div`\n display: flex;\n justify-content: space-between;\n`\nexport const ModalContent = styled.div`\n
|
|
1
|
+
{"version":3,"file":"modal.styles.js","sources":["../../../../../src/components/layout/modal/modal.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\n\nexport const ModalComp = styled.div<{\n open: boolean\n}>`\n display: ${(props) => (props.open ? 'flex' : 'none')};\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n align-items: center;\n z-index: ${({ theme }) => theme.zIndex?.modal ?? 1200};\n flex-direction: column;\n\n animation: overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1);\n\n @keyframes overlayShow {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n }\n`\n\nexport const Background = styled.div`\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.534);\n z-index: -1;\n`\n\nexport const ModalCard = styled.div.withConfig({\n shouldForwardProp: (prop) =>\n !['minWidth', 'minHeight', 'maxWidth', 'maxHeight'].includes(prop),\n})<{\n width?: string\n minWidth?: string\n height?: string\n minHeight?: string\n maxWidth?: string\n maxHeight?: string\n}>`\n &:focus {\n outline: none;\n }\n\n display: flex;\n flex-direction: column;\n gap: 1rem;\n background-color: ${(props) =>\n getThemeColor(props.theme.colors.custom.white, props.theme)};\n border-radius: 1rem;\n box-shadow: ${({ theme }) => theme.shadow.lg};\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: ${(props) => props.width};\n min-width: ${(props) => props.minWidth ?? '300px'};\n max-width: ${(props) => props.maxWidth ?? '90vw'};\n height: ${(props) => props.height};\n min-height: ${(props) => props.minHeight};\n max-height: ${(props) => props.maxHeight ?? '90vh'};\n padding: ${(props) => props.theme.spacing['3']};\n animation: contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1);\n\n @keyframes contentShow {\n from {\n opacity: 0;\n transform: translate(-50%, -48%) scale(0.96);\n }\n\n to {\n opacity: 1;\n transform: translate(-50%, -50%) scale(1);\n }\n }\n`\nexport const ModalHeader = styled.div`\n display: flex;\n justify-content: space-between;\n`\nexport const ModalContent = styled.div`\n display: flex;\n height: 100%;\n overflow: auto;\n ${thinScrollbar}\n`\n"],"names":["ModalComp","styled","div","props","open","theme","zIndex","modal","Background","ModalCard","withConfig","shouldForwardProp","prop","includes","getThemeColor","colors","custom","white","shadow","lg","width","minWidth","maxWidth","height","minHeight","maxHeight","spacing","ModalHeader","ModalContent","thinScrollbar"],"mappings":"mIAIaA,MAAAA,EAAYC,EAAMA,OAACC,GAE9B;aACYC,GAAWA,EAAMC,KAAO,OAAS;;;;;;;aAOlC,EAAGC,WAAYA,EAAMC,QAAQC,OAAS;;;;;;;;;;;;;;EAgBtCC,EAAaP,EAAMA,OAACC,GAAG;;;;;;EAQvBO,EAAYR,EAAAA,OAAOC,IAAIQ,WAAW,CAC7CC,kBAAoBC,IACjB,CAAC,WAAY,YAAa,WAAY,aAAaC,SAASD,IAQ/D;;;;;;;;sBAQqBT,GACnBW,gBAAcX,EAAME,MAAMU,OAAOC,OAAOC,MAAOd,EAAME;;gBAEzC,EAAGA,WAAYA,EAAMa,OAAOC;;;;;WAKhChB,GAAUA,EAAMiB;eACZjB,GAAUA,EAAMkB,UAAY;eAC5BlB,GAAUA,EAAMmB,UAAY;YAC/BnB,GAAUA,EAAMoB;gBACZpB,GAAUA,EAAMqB;gBAChBrB,GAAUA,EAAMsB,WAAa;aAChCtB,GAAUA,EAAME,MAAMqB,QAAQ;;;;;;;;;;;;;;EAe/BC,EAAc1B,EAAMA,OAACC,GAAG;;;EAIxB0B,EAAe3B,EAAMA,OAACC,GAAG;;;;IAIlC2B;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("styled-components"),o=require("../../../theme/theme.util.js");const
|
|
1
|
+
"use strict";var e=require("styled-components"),o=require("../../../theme/theme.util.js"),r=require("../../../theme/scrollbar.js");const t=e.styled.div.withConfig({shouldForwardProp:e=>!["visible","boxShadow","borderRadius","maxHeight"].includes(e)}).attrs((({$popperStyle:e})=>({style:e})))`
|
|
2
2
|
background-color: ${({theme:e})=>o.getThemeColor("white",e)};
|
|
3
3
|
border-radius: ${({borderRadius:e,theme:o})=>e??o.border_radius.card};
|
|
4
4
|
box-shadow: ${({boxShadow:e,theme:o})=>e??o.box_shadow.box};
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
border: 1px solid ${({theme:e})=>o.getThemeColor("grey_4",e)};
|
|
8
8
|
overflow-x: hidden;
|
|
9
9
|
overflow-y: auto;
|
|
10
|
+
${r.thinScrollbar}
|
|
10
11
|
max-height: ${({maxHeight:e})=>e??void 0};
|
|
11
12
|
z-index: ${({theme:e})=>e.zIndex?.dropdown??1300};
|
|
12
|
-
`;exports.PopoverContent=
|
|
13
|
+
`;exports.PopoverContent=t;
|
|
13
14
|
//# sourceMappingURL=popover.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.styles.js","sources":["../../../../../src/components/layout/popover/popover.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\nexport const PopoverContent = styled.div\n .withConfig({\n shouldForwardProp: (prop) =>\n !['visible', 'boxShadow', 'borderRadius', 'maxHeight'].includes(prop),\n })\n .attrs<{ $popperStyle?: React.CSSProperties }>(({ $popperStyle }) => ({\n style: $popperStyle,\n }))<{\n width: string\n visible?: boolean\n boxShadow?: string\n borderRadius?: string\n maxHeight?: string\n}>`\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n border-radius: ${({ borderRadius, theme }) =>\n borderRadius ?? theme.border_radius.card};\n box-shadow: ${({ boxShadow, theme }) => boxShadow ?? theme.box_shadow.box};\n width: ${({ width }) => width};\n display: ${({ visible }) => (visible ? 'block' : 'none')};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n overflow-x: hidden;\n overflow-y: auto;\n max-height: ${({ maxHeight }) => maxHeight ?? undefined};\n z-index: ${({ theme }) => theme.zIndex?.dropdown ?? 1300};\n`\n"],"names":["PopoverContent","styled","div","withConfig","shouldForwardProp","prop","includes","attrs","$popperStyle","style","theme","getThemeColor","borderRadius","border_radius","card","boxShadow","box_shadow","box","width","visible","maxHeight","undefined","zIndex","dropdown"],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.styles.js","sources":["../../../../../src/components/layout/popover/popover.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\n\nexport const PopoverContent = styled.div\n .withConfig({\n shouldForwardProp: (prop) =>\n !['visible', 'boxShadow', 'borderRadius', 'maxHeight'].includes(prop),\n })\n .attrs<{ $popperStyle?: React.CSSProperties }>(({ $popperStyle }) => ({\n style: $popperStyle,\n }))<{\n width: string\n visible?: boolean\n boxShadow?: string\n borderRadius?: string\n maxHeight?: string\n}>`\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n border-radius: ${({ borderRadius, theme }) =>\n borderRadius ?? theme.border_radius.card};\n box-shadow: ${({ boxShadow, theme }) => boxShadow ?? theme.box_shadow.box};\n width: ${({ width }) => width};\n display: ${({ visible }) => (visible ? 'block' : 'none')};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n overflow-x: hidden;\n overflow-y: auto;\n ${thinScrollbar}\n max-height: ${({ maxHeight }) => maxHeight ?? undefined};\n z-index: ${({ theme }) => theme.zIndex?.dropdown ?? 1300};\n`\n"],"names":["PopoverContent","styled","div","withConfig","shouldForwardProp","prop","includes","attrs","$popperStyle","style","theme","getThemeColor","borderRadius","border_radius","card","boxShadow","box_shadow","box","width","visible","thinScrollbar","maxHeight","undefined","zIndex","dropdown"],"mappings":"mIAIO,MAAMA,EAAiBC,EAAAA,OAAOC,IAClCC,WAAW,CACVC,kBAAoBC,IACjB,CAAC,UAAW,YAAa,eAAgB,aAAaC,SAASD,KAEnEE,OAA8C,EAAGC,mBAAoB,CACpEC,MAAOD,KAOT;sBACoB,EAAGE,WAAYC,EAAaA,cAAC,QAASD;mBACzC,EAAGE,eAAcF,WAChCE,GAAgBF,EAAMG,cAAcC;gBACxB,EAAGC,YAAWL,WAAYK,GAAaL,EAAMM,WAAWC;WAC7D,EAAGC,WAAYA;aACb,EAAGC,aAAeA,EAAU,QAAU;sBAC7B,EAAGT,WAAYC,EAAaA,cAAC,SAAUD;;;IAGzDU;gBACY,EAAGC,eAAgBA,QAAaC;aACnC,EAAGZ,WAAYA,EAAMa,QAAQC,UAAY;"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var e=require("styled-components"),t=require("
|
|
1
|
+
"use strict";var e=require("styled-components"),t=require("../../../theme/scrollbar.js"),n=require("../box/box.comp.js");e.styled(n.Box)`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: 1rem;
|
|
5
5
|
justify-content: center;
|
|
6
6
|
align-items: center;
|
|
7
|
-
`;const
|
|
7
|
+
`;const i=e.styled.div`
|
|
8
8
|
display: flex;
|
|
9
9
|
width: 100%;
|
|
10
10
|
justify-content: flex-start;
|
|
@@ -15,37 +15,16 @@
|
|
|
15
15
|
flex-shrink: 0;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
height: 8px;
|
|
20
|
-
}
|
|
21
|
-
&::-webkit-scrollbar-track {
|
|
22
|
-
background: 'tranparent';
|
|
23
|
-
}
|
|
24
|
-
&::-webkit-scrollbar-thumb {
|
|
25
|
-
background: 'tranparent';
|
|
26
|
-
}
|
|
27
|
-
&::-webkit-scrollbar-thumb:hover {
|
|
28
|
-
background: 'tranparent';
|
|
29
|
-
}
|
|
30
|
-
transition: all 0.3s ease;
|
|
31
|
-
|
|
32
|
-
&:hover {
|
|
33
|
-
&::-webkit-scrollbar-track {
|
|
34
|
-
background: ${e=>r.getThemeColor(e.theme.colors.grey_5,e.theme)};
|
|
35
|
-
}
|
|
36
|
-
&::-webkit-scrollbar-thumb {
|
|
37
|
-
background: ${e=>r.getThemeColor(e.theme.colors.grey_4,e.theme)};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
18
|
+
${t.thinScrollbarOnHover}
|
|
40
19
|
|
|
41
20
|
@media (max-width: ${425}px) {
|
|
42
21
|
overflow: auto;
|
|
43
22
|
}
|
|
44
|
-
`,
|
|
23
|
+
`,o=e.styled.div`
|
|
45
24
|
display: flex;
|
|
46
25
|
gap: ${({theme:e})=>e.spacing[2]};
|
|
47
26
|
justify-content: center;
|
|
48
27
|
|
|
49
28
|
${({$hideOnMobile:e})=>e&&"\n @media (max-width: 425px) {\n display: none;\n }\n "}
|
|
50
|
-
`;exports.MOBILE_MAX_WIDTH=425,exports.NavButtons=
|
|
29
|
+
`;exports.MOBILE_MAX_WIDTH=425,exports.NavButtons=o,exports.ScrollableArea=i;
|
|
51
30
|
//# sourceMappingURL=slider.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.styles.js","sources":["../../../../../src/components/layout/slider/slider.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport {
|
|
1
|
+
{"version":3,"file":"slider.styles.js","sources":["../../../../../src/components/layout/slider/slider.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { thinScrollbarOnHover } from '../../../theme'\nimport { Box } from '../box'\n\n/** Até esta largura a área rola com o dedo/trackpad (e os botões podem ser escondidos). */\nexport const MOBILE_MAX_WIDTH = 425\n\nexport const SliderContainer = styled(Box)`\n display: flex;\n flex-direction: column;\n gap: 1rem;\n justify-content: center;\n align-items: center;\n`\n\nexport const ScrollableArea = styled.div<{ $hasbuttons: boolean }>`\n display: flex;\n width: 100%;\n justify-content: flex-start;\n align-items: center;\n overflow: ${({ $hasbuttons }) => ($hasbuttons ? 'hidden' : 'auto')};\n\n & > * {\n flex-shrink: 0;\n }\n\n ${thinScrollbarOnHover}\n\n @media (max-width: ${MOBILE_MAX_WIDTH}px) {\n overflow: auto;\n }\n`\n\nexport const NavButtons = styled.div<{ $hideOnMobile?: boolean }>`\n display: flex;\n gap: ${({ theme }) => theme.spacing[2]};\n justify-content: center;\n\n ${({ $hideOnMobile }) =>\n $hideOnMobile &&\n `\n @media (max-width: ${MOBILE_MAX_WIDTH}px) {\n display: none;\n }\n `}\n`\n"],"names":["styled","Box","ScrollableArea","div","$hasbuttons","thinScrollbarOnHover","NavButtons","theme","spacing","$hideOnMobile"],"mappings":"yHAQ+BA,EAAMA,OAACC,EAAGA,IAAC;;;;;;EAQ7BC,MAAAA,EAAiBF,EAAMA,OAACG,GAA6B;;;;;cAKpD,EAAGC,iBAAmBA,EAAc,SAAW;;;;;;IAMzDC;;uBArB4B;;;EA4BnBC,EAAaN,EAAMA,OAACG,GAAgC;;SAExD,EAAGI,WAAYA,EAAMC,QAAQ;;;IAGlC,EAAGC,mBACHA,GACA;2BAnC4B"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("react"),l=require("./table.styles.js"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("react"),l=require("./table.styles.js"),r=require("../table-head/table-head.comp.js"),a=require("../table-row/table-row.comp.js"),s=require("../box/box.comp.js");exports.Table=({data:o,headers:c,onSelectionChange:d,selectable:i,selected:n,header:b,footer:h,borderRadius:u,spacing:x,boxShadow:j,mobileLayout:m="scroll",onRowClick:w,hoverable:p,...g})=>{const[R,T]=t.useState(n||[]);t.useEffect((()=>{n&&T(n)}),[n,R]);const q=e=>{let t=R;t=R.includes(e)?R.filter((t=>t!==e)):[...R,e],T(t),d?.(t)},C=(t,l)=>e.jsx(a.TableRow,{data:t,headers:c,selectable:i,selected:R.includes(t),onSelect:q,index:l,spacing:x,hoverable:p??Boolean(w),onClick:w},`row-${l}`);return e.jsxs(l.TableWrapper,{"data-testid":"table",direction:"column",borderRadius:u,boxShadow:j,...g,children:[b&&e.jsx(s.Box,{width:"100%",children:b}),e.jsxs(l.Table,{$mobileCards:"cards"===m,children:[e.jsx(r.TableHead,{headers:c,selectable:i,selected:R.length===o.length,onSelect:()=>{let e=[];R.length!==o.length&&(e=[...o]),T(e),d?.(e)},spacing:x}),e.jsx("tbody",{children:o.map(((t,r)=>t.customRender?e.jsx(l.CustomTableRow,{"data-testid":"custom-row",children:e.jsx(l.TableColumn,{$align:"center",width:"100%",children:t.customRender(t,r,C)})},`custom-row-${r}`):C(t,r)))})]}),h&&e.jsx(s.Box,{width:"100%",children:h})]})};
|
|
2
2
|
//# sourceMappingURL=table.comp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.comp.js","sources":["../../../../../src/components/layout/table/table.comp.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\n\nimport { Box } from '../box'\nimport { TableHead } from '../table-head'\nimport { TableRow } from '../table-row'\n\nimport { TableData, TableProps } from './table.types'\n\nimport * as Styles from './table.styles'\n\n/**\n * Tabela de dados com colunas configuráveis (`headers`), seleção de linhas (`selectable`) e conteúdo próprio por coluna (`customRender`).\n * No celular, `mobileLayout=\"cards\"` mostra cada linha como um card.\n * `onRowClick` deixa a linha clicável (com destaque no hover e teclado); `hoverable` só destaca.\n * Para listas grandes, coloque `<Pagination totalItems={...} />` abaixo.\n * @example <Table headers={[{ key: 'nome', label: 'Nome' }]} data={fornecedores} />\n */\nexport const Table = ({\n data,\n headers,\n onSelectionChange,\n selectable,\n selected,\n header,\n footer,\n borderRadius,\n spacing,\n boxShadow,\n mobileLayout = 'scroll',\n onRowClick,\n hoverable,\n ...rest\n}: TableProps) => {\n const [selectedRows, setSelectedRows] = useState<TableData[]>(selected || [])\n\n useEffect(() => {\n if (selected) {\n setSelectedRows(selected)\n }\n }, [selected, selectedRows])\n\n const handleToggleSelectAll = () => {\n let newSelectedRows: TableData[] = []\n if (selectedRows.length !== data.length) {\n newSelectedRows = [...data]\n }\n\n setSelectedRows(newSelectedRows)\n onSelectionChange?.(newSelectedRows)\n }\n\n const handleToggleSelect = (row: TableData) => {\n let newSelectedRows: TableData[] = selectedRows\n if (selectedRows.includes(row)) {\n newSelectedRows = selectedRows.filter(\n (selectedRow) => selectedRow !== row,\n )\n } else {\n newSelectedRows = [...selectedRows, row]\n }\n\n setSelectedRows(newSelectedRows)\n onSelectionChange?.(newSelectedRows)\n }\n\n const renderDefaultRow = (row: TableData, index: number) => (\n <TableRow\n data={row}\n headers={headers}\n selectable={selectable}\n selected={selectedRows.includes(row)}\n onSelect={handleToggleSelect}\n index={index}\n spacing={spacing}\n hoverable={hoverable ?? Boolean(onRowClick)}\n onClick={onRowClick}\n />\n )\n\n return (\n <Styles.TableWrapper\n data-testid=\"table\"\n direction=\"column\"\n borderRadius={borderRadius}\n boxShadow={boxShadow}\n {...rest}\n >\n {header && <Box width=\"100%\">{header}</Box>}\n <Styles.Table $mobileCards={mobileLayout === 'cards'}>\n <TableHead\n headers={headers}\n selectable={selectable}\n selected={selectedRows.length === data.length}\n onSelect={handleToggleSelectAll}\n spacing={spacing}\n />\n <tbody>\n {data.map((row, index) => {\n if (row.customRender) {\n return (\n <Styles.CustomTableRow\n key={`custom-row-${index}`}\n data-testid=\"custom-row\"\n >\n <Styles.TableColumn $align=\"center\" width=\"100%\">\n {row.customRender(row, index, renderDefaultRow)}\n </Styles.TableColumn>\n </Styles.CustomTableRow>\n )\n }\n return renderDefaultRow(row, index)\n })}\n </tbody>\n </Styles.Table>\n {footer && <Box width=\"100%\">{footer}</Box>}\n </Styles.TableWrapper>\n )\n}\n"],"names":["Table","data","headers","onSelectionChange","selectable","selected","header","footer","borderRadius","spacing","boxShadow","mobileLayout","onRowClick","hoverable","rest","selectedRows","setSelectedRows","useState","useEffect","handleToggleSelect","row","newSelectedRows","includes","filter","selectedRow","renderDefaultRow","index","_jsx","TableRow","onSelect","Boolean","onClick","_jsxs","Styles","direction","Box","width","children","jsxs","TableHead","length","handleToggleSelectAll","jsx","map","customRender","$align"],"mappings":"0OAiBqBA,EACnBC,OACAC,UACAC,oBACAC,aACAC,WACAC,SACAC,SACAC,eACAC,UACAC,YACAC,eAAe,SACfC,aACAC,eACGC,MAEH,MAAOC,EAAcC,GAAmBC,EAAAA,SAAsBZ,GAAY,IAE1Ea,EAAAA,WAAU,KACJb,GACFW,EAAgBX,EAClB,GACC,CAACA,EAAUU,IAEd,MAUMI,EAAsBC,IAC1B,IAAIC,EAA+BN,EAEjCM,EADEN,EAAaO,SAASF,GACNL,EAAaQ,QAC5BC,GAAgBA,IAAgBJ,IAGjB,IAAIL,EAAcK,GAGtCJ,EAAgBK,GAChBlB,IAAoBkB,EAAgB,EAGhCI,EAAmBA,CAACL,EAAgBM,IACxCC,EAAAA,IAACC,EAAAA,
|
|
1
|
+
{"version":3,"file":"table.comp.js","sources":["../../../../../src/components/layout/table/table.comp.tsx"],"sourcesContent":["import { useEffect, useState } from 'react'\n\nimport { Box } from '../box'\nimport { TableHead } from '../table-head'\nimport { TableRow } from '../table-row'\n\nimport { TableData, TableProps } from './table.types'\n\nimport * as Styles from './table.styles'\n\n/**\n * Tabela de dados com colunas configuráveis (`headers`), seleção de linhas (`selectable`) e conteúdo próprio por coluna (`customRender`).\n * No celular, `mobileLayout=\"cards\"` mostra cada linha como um card.\n * `onRowClick` deixa a linha clicável (com destaque no hover e teclado); `hoverable` só destaca.\n * Para listas grandes, coloque `<Pagination totalItems={...} />` abaixo.\n * @example <Table headers={[{ key: 'nome', label: 'Nome' }]} data={fornecedores} />\n */\nexport const Table = ({\n data,\n headers,\n onSelectionChange,\n selectable,\n selected,\n header,\n footer,\n borderRadius,\n spacing,\n boxShadow,\n mobileLayout = 'scroll',\n onRowClick,\n hoverable,\n ...rest\n}: TableProps) => {\n const [selectedRows, setSelectedRows] = useState<TableData[]>(selected || [])\n\n useEffect(() => {\n if (selected) {\n setSelectedRows(selected)\n }\n }, [selected, selectedRows])\n\n const handleToggleSelectAll = () => {\n let newSelectedRows: TableData[] = []\n if (selectedRows.length !== data.length) {\n newSelectedRows = [...data]\n }\n\n setSelectedRows(newSelectedRows)\n onSelectionChange?.(newSelectedRows)\n }\n\n const handleToggleSelect = (row: TableData) => {\n let newSelectedRows: TableData[] = selectedRows\n if (selectedRows.includes(row)) {\n newSelectedRows = selectedRows.filter(\n (selectedRow) => selectedRow !== row,\n )\n } else {\n newSelectedRows = [...selectedRows, row]\n }\n\n setSelectedRows(newSelectedRows)\n onSelectionChange?.(newSelectedRows)\n }\n\n const renderDefaultRow = (row: TableData, index: number) => (\n <TableRow\n key={`row-${index}`}\n data={row}\n headers={headers}\n selectable={selectable}\n selected={selectedRows.includes(row)}\n onSelect={handleToggleSelect}\n index={index}\n spacing={spacing}\n hoverable={hoverable ?? Boolean(onRowClick)}\n onClick={onRowClick}\n />\n )\n\n return (\n <Styles.TableWrapper\n data-testid=\"table\"\n direction=\"column\"\n borderRadius={borderRadius}\n boxShadow={boxShadow}\n {...rest}\n >\n {header && <Box width=\"100%\">{header}</Box>}\n <Styles.Table $mobileCards={mobileLayout === 'cards'}>\n <TableHead\n headers={headers}\n selectable={selectable}\n selected={selectedRows.length === data.length}\n onSelect={handleToggleSelectAll}\n spacing={spacing}\n />\n <tbody>\n {data.map((row, index) => {\n if (row.customRender) {\n return (\n <Styles.CustomTableRow\n key={`custom-row-${index}`}\n data-testid=\"custom-row\"\n >\n <Styles.TableColumn $align=\"center\" width=\"100%\">\n {row.customRender(row, index, renderDefaultRow)}\n </Styles.TableColumn>\n </Styles.CustomTableRow>\n )\n }\n return renderDefaultRow(row, index)\n })}\n </tbody>\n </Styles.Table>\n {footer && <Box width=\"100%\">{footer}</Box>}\n </Styles.TableWrapper>\n )\n}\n"],"names":["Table","data","headers","onSelectionChange","selectable","selected","header","footer","borderRadius","spacing","boxShadow","mobileLayout","onRowClick","hoverable","rest","selectedRows","setSelectedRows","useState","useEffect","handleToggleSelect","row","newSelectedRows","includes","filter","selectedRow","renderDefaultRow","index","_jsx","TableRow","onSelect","Boolean","onClick","_jsxs","Styles","direction","Box","width","children","jsxs","TableHead","length","handleToggleSelectAll","jsx","map","customRender","$align"],"mappings":"0OAiBqBA,EACnBC,OACAC,UACAC,oBACAC,aACAC,WACAC,SACAC,SACAC,eACAC,UACAC,YACAC,eAAe,SACfC,aACAC,eACGC,MAEH,MAAOC,EAAcC,GAAmBC,EAAAA,SAAsBZ,GAAY,IAE1Ea,EAAAA,WAAU,KACJb,GACFW,EAAgBX,EAClB,GACC,CAACA,EAAUU,IAEd,MAUMI,EAAsBC,IAC1B,IAAIC,EAA+BN,EAEjCM,EADEN,EAAaO,SAASF,GACNL,EAAaQ,QAC5BC,GAAgBA,IAAgBJ,IAGjB,IAAIL,EAAcK,GAGtCJ,EAAgBK,GAChBlB,IAAoBkB,EAAgB,EAGhCI,EAAmBA,CAACL,EAAgBM,IACxCC,EAAAA,IAACC,EAAAA,UAEC3B,KAAMmB,EACNlB,QAASA,EACTE,WAAYA,EACZC,SAAUU,EAAaO,SAASF,GAChCS,SAAUV,EACVO,MAAOA,EACPjB,QAASA,EACTI,UAAWA,GAAaiB,QAAQlB,GAChCmB,QAASnB,GATG,OAAAc,KAahB,OACEM,EAAAA,KAACC,EAAAA,4BACa,QACZC,UAAU,SACV1B,aAAcA,EACdE,UAAWA,KACPI,YAEHR,GAAUqB,MAACQ,MAAG,CAACC,MAAM,OAAQC,SAAA/B,IAC9B0B,EAAAM,KAACL,sBAA4C,UAAjBtB,EAAwB0B,SAAA,CAClDV,MAACY,YAAS,CACRrC,QAASA,EACTE,WAAYA,EACZC,SAAUU,EAAayB,SAAWvC,EAAKuC,OACvCX,SArDsBY,KAC5B,IAAIpB,EAA+B,GAC/BN,EAAayB,SAAWvC,EAAKuC,SAC/BnB,EAAkB,IAAIpB,IAGxBe,EAAgBK,GAChBlB,IAAoBkB,EAAgB,EA+C9BZ,QAASA,IAEXkB,EAAAe,IAAA,QAAA,CAAAL,SACGpC,EAAK0C,KAAI,CAACvB,EAAKM,IACVN,EAAIwB,aAEJjB,EAAAA,IAACM,EAAAA,8BAEa,aAAYI,SAExBV,EAACe,IAAAT,cAAkB,CAAAY,OAAQ,SAAST,MAAM,OACvCC,SAAAjB,EAAIwB,aAAaxB,EAAKM,EAAOD,MAJb,cAAAC,KASlBD,EAAiBL,EAAKM,UAIlCnB,GAAUoB,EAACe,IAAAP,MAAI,CAAAC,MAAM,OAAMC,SAAE9B,MACV"}
|