@salutejs/plasma-new-hope 0.346.0-canary.2431.21286178286.0 → 0.346.0-canary.2431.21393540147.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/cjs/components/File/File.css +80 -0
- package/dist/css/cjs/components/File/File.js +154 -0
- package/dist/css/cjs/components/File/File.js.map +1 -0
- package/dist/css/cjs/components/File/File.styles.js +23 -0
- package/dist/css/cjs/components/File/File.styles.js.map +1 -0
- package/dist/css/cjs/components/File/File.styles_x6tfzx.css +4 -0
- package/dist/css/cjs/components/File/File.tokens.js +72 -0
- package/dist/css/cjs/components/File/File.tokens.js.map +1 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.css +22 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.js +31 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.js.map +1 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.styles.js +52 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.styles.js.map +1 -0
- package/dist/css/cjs/components/File/ui/Cell/Cell.styles_1nus00g.css +6 -0
- package/dist/css/cjs/components/File/ui/EmbedIconButton/EmbedIconButton.styles.js +22 -0
- package/dist/css/cjs/components/File/ui/EmbedIconButton/EmbedIconButton.styles.js.map +1 -0
- package/dist/css/cjs/components/File/ui/EmbedIconButton/EmbedIconButton.styles_15pej3s.css +1 -0
- package/dist/css/cjs/components/File/ui/Loader/Loader.styles.js +34 -0
- package/dist/css/cjs/components/File/ui/Loader/Loader.styles.js.map +1 -0
- package/dist/css/cjs/components/File/ui/Loader/Loader.styles_10xh4ax.css +2 -0
- package/dist/css/cjs/components/File/utils/getFileIcon.js +73 -0
- package/dist/css/cjs/components/File/utils/getFileIcon.js.map +1 -0
- package/dist/css/cjs/components/File/variations/_disabled/base.js +9 -0
- package/dist/css/cjs/components/File/variations/_disabled/base.js.map +1 -0
- package/dist/css/cjs/components/File/variations/_disabled/base_je3m22.css +1 -0
- package/dist/css/cjs/components/File/variations/_size/base.js +9 -0
- package/dist/css/cjs/components/File/variations/_size/base.js.map +1 -0
- package/dist/css/cjs/components/File/variations/_size/base_x642ct.css +1 -0
- package/dist/css/cjs/components/File/variations/_view/base.js +9 -0
- package/dist/css/cjs/components/File/variations/_view/base.js.map +1 -0
- package/dist/css/cjs/components/File/variations/_view/base_x642ct.css +1 -0
- package/dist/css/cjs/index.css +19 -0
- package/dist/css/cjs/index.js +6 -0
- package/dist/css/cjs/index.js.map +1 -1
- package/dist/css/es/components/File/File.css +80 -0
- package/dist/css/es/components/File/File.js +144 -0
- package/dist/css/es/components/File/File.js.map +1 -0
- package/dist/css/es/components/File/File.styles.js +17 -0
- package/dist/css/es/components/File/File.styles.js.map +1 -0
- package/dist/css/es/components/File/File.styles_x6tfzx.css +4 -0
- package/dist/css/es/components/File/File.tokens.js +66 -0
- package/dist/css/es/components/File/File.tokens.js.map +1 -0
- package/dist/css/es/components/File/ui/Cell/Cell.css +22 -0
- package/dist/css/es/components/File/ui/Cell/Cell.js +23 -0
- package/dist/css/es/components/File/ui/Cell/Cell.js.map +1 -0
- package/dist/css/es/components/File/ui/Cell/Cell.styles.js +43 -0
- package/dist/css/es/components/File/ui/Cell/Cell.styles.js.map +1 -0
- package/dist/css/es/components/File/ui/Cell/Cell.styles_1nus00g.css +6 -0
- package/dist/css/es/components/File/ui/EmbedIconButton/EmbedIconButton.styles.js +18 -0
- package/dist/css/es/components/File/ui/EmbedIconButton/EmbedIconButton.styles.js.map +1 -0
- package/dist/css/es/components/File/ui/EmbedIconButton/EmbedIconButton.styles_15pej3s.css +1 -0
- package/dist/css/es/components/File/ui/Loader/Loader.styles.js +29 -0
- package/dist/css/es/components/File/ui/Loader/Loader.styles.js.map +1 -0
- package/dist/css/es/components/File/ui/Loader/Loader.styles_10xh4ax.css +2 -0
- package/dist/css/es/components/File/utils/getFileIcon.js +65 -0
- package/dist/css/es/components/File/utils/getFileIcon.js.map +1 -0
- package/dist/css/es/components/File/variations/_disabled/base.js +5 -0
- package/dist/css/es/components/File/variations/_disabled/base.js.map +1 -0
- package/dist/css/es/components/File/variations/_disabled/base_je3m22.css +1 -0
- package/dist/css/es/components/File/variations/_size/base.js +5 -0
- package/dist/css/es/components/File/variations/_size/base.js.map +1 -0
- package/dist/css/es/components/File/variations/_size/base_x642ct.css +1 -0
- package/dist/css/es/components/File/variations/_view/base.js +5 -0
- package/dist/css/es/components/File/variations/_view/base.js.map +1 -0
- package/dist/css/es/components/File/variations/_view/base_x642ct.css +1 -0
- package/dist/css/es/index.css +19 -0
- package/dist/css/es/index.js +2 -0
- package/dist/css/es/index.js.map +1 -1
- package/dist/emotion/cjs/components/File/File.js +1 -1
- package/dist/emotion/cjs/components/_Icon/Icon.assets/Plasma.js +56 -0
- package/dist/emotion/cjs/components/_Icon/Icon.assets/Refresh.js +56 -0
- package/dist/emotion/cjs/components/_Icon/Icons/IconPlasma.js +86 -0
- package/dist/emotion/cjs/components/_Icon/Icons/IconRefresh.js +86 -0
- package/dist/emotion/cjs/components/_Icon/index.js +8 -0
- package/dist/emotion/cjs/examples/components/Combobox/Combobox.js +15 -0
- package/dist/emotion/cjs/index.js +1 -0
- package/dist/emotion/es/components/File/File.js +2 -2
- package/dist/emotion/es/components/_Icon/Icon.assets/Plasma.js +41 -0
- package/dist/emotion/es/components/_Icon/Icon.assets/Refresh.js +41 -0
- package/dist/emotion/es/components/_Icon/Icons/IconPlasma.js +71 -0
- package/dist/emotion/es/components/_Icon/Icons/IconRefresh.js +71 -0
- package/dist/emotion/es/components/_Icon/index.js +2 -0
- package/dist/emotion/es/index.js +1 -0
- package/dist/styled-components/cjs/components/File/File.js +1 -1
- package/dist/styled-components/cjs/components/_Icon/Icon.assets/Plasma.js +56 -0
- package/dist/styled-components/cjs/components/_Icon/Icon.assets/Refresh.js +56 -0
- package/dist/styled-components/cjs/components/_Icon/Icons/IconPlasma.js +86 -0
- package/dist/styled-components/cjs/components/_Icon/Icons/IconRefresh.js +86 -0
- package/dist/styled-components/cjs/components/_Icon/index.js +8 -0
- package/dist/styled-components/cjs/examples/components/Combobox/Combobox.js +0 -15
- package/dist/styled-components/cjs/index.js +1 -0
- package/dist/styled-components/es/components/File/File.js +2 -2
- package/dist/styled-components/es/components/_Icon/Icon.assets/Plasma.js +41 -0
- package/dist/styled-components/es/components/_Icon/Icon.assets/Refresh.js +41 -0
- package/dist/styled-components/es/components/_Icon/Icons/IconPlasma.js +71 -0
- package/dist/styled-components/es/components/_Icon/Icons/IconRefresh.js +71 -0
- package/dist/styled-components/es/components/_Icon/index.js +2 -0
- package/dist/styled-components/es/index.js +1 -0
- package/package.json +5 -5
- package/types/components/File/index.d.ts +0 -1
- package/types/components/File/index.d.ts.map +1 -1
- package/types/components/_Icon/Icon.assets/Plasma.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/Plasma.d.ts.map +1 -0
- package/types/components/_Icon/Icon.assets/Refresh.d.ts +4 -0
- package/types/components/_Icon/Icon.assets/Refresh.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconPlasma.d.ts +4 -0
- package/types/components/_Icon/Icons/IconPlasma.d.ts.map +1 -0
- package/types/components/_Icon/Icons/IconRefresh.d.ts +4 -0
- package/types/components/_Icon/Icons/IconRefresh.d.ts.map +1 -0
- package/types/components/_Icon/index.d.ts +2 -0
- package/types/components/_Icon/index.d.ts.map +1 -1
- package/types/examples/components/File/File.d.ts +1 -1
- package/types/examples/components/File/File.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/index.d.ts.map +1 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.IconRoot_7pl7ig_svvlqhf__32c458a1{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:var(--svvlqhf-0);height:var(--svvlqhf-0);-webkit-flex:0 0 var(--svvlqhf-0);-ms-flex:0 0 var(--svvlqhf-0);flex:0 0 var(--svvlqhf-0);}
|
|
2
|
+
|
|
3
|
+
.base_je3m22_bglpt23__b0eef474[disabled]{opacity:var(--plasma-file-disabled-opacity);cursor:not-allowed;}.base_je3m22_bglpt23__b0eef474[disabled] .base_je3m22_s3czsgs__b0eef474{pointer-events:none;}
|
|
4
|
+
|
|
5
|
+
.File_styles_x6tfzx_s1m3tq90__28147ee8{width:100%;height:100%;color:currentColor;}
|
|
6
|
+
.File_styles_x6tfzx_f1l1bm2h__28147ee8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow:hidden;color:var(--plasma-file-cell-title-color);width:var(--plasma-file-thumb-size);height:var(--plasma-file-thumb-size);margin:var(--plasma-file-thumb-margin);border-radius:var(--plasma-file-thumb-radius);}
|
|
7
|
+
.File_styles_x6tfzx_t1o86cdi__28147ee8{width:100%;height:100%;object-fit:cover;}
|
|
8
|
+
.File_styles_x6tfzx_b1bbw1jz__28147ee8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;width:var(--plasma_private-file-inner-width);}.File_styles_x6tfzx_b1bbw1jz__28147ee8.File_styles_x6tfzx_fileLoaderLinear__28147ee8{gap:var(--plasma-file-content-linear-progress-gap);}
|
|
9
|
+
|
|
10
|
+
.CellTextboxLabel_styles_1x97zqi_supiagz__b05150dd{color:var(--plasma-cell-label-color);font-size:var(--plasma-cell-label-font-size);font-weight:var(--plasma-cell-label-font-weight);font-family:var(--plasma-cell-label-font-family);font-style:var(--plasma-cell-label-font-style);line-height:var(--plasma-cell-label-line-height);-webkit-letter-spacing:var(--plasma-cell-label-letter-spacing);-moz-letter-spacing:var(--plasma-cell-label-letter-spacing);-ms-letter-spacing:var(--plasma-cell-label-letter-spacing);letter-spacing:var(--plasma-cell-label-letter-spacing);}
|
|
11
|
+
|
|
12
|
+
.CellTextboxTitle_styles_jogov7_s16psy9b__edbbb199{color:var(--plasma-cell-title-color);font-size:var(--plasma-cell-title-font-size);font-weight:var(--plasma-cell-title-font-weight);font-family:var(--plasma-cell-title-font-family);font-style:var(--plasma-cell-title-font-style);line-height:var(--plasma-cell-title-line-height);-webkit-letter-spacing:var(--plasma-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-cell-title-letter-spacing);letter-spacing:var(--plasma-cell-title-letter-spacing);}
|
|
13
|
+
|
|
14
|
+
.CellTextboxSubtitle_styles_n7i06q_s1bdz4u4__8e9f9a5a{color:var(--plasma-cell-subtitle-color);font-size:var(--plasma-cell-subtitle-font-size);font-weight:var(--plasma-cell-subtitle-font-weight);font-family:var(--plasma-cell-subtitle-font-family);font-style:var(--plasma-cell-subtitle-font-style);line-height:var(--plasma-cell-subtitle-line-height);-webkit-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-cell-subtitle-letter-spacing);}
|
|
15
|
+
|
|
16
|
+
.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFixed__a35afa10{width:var(--plasma-cell-width);}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFilled__a35afa10{width:100%;}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingAuto__a35afa10{width:auto;}
|
|
17
|
+
.Cell_styles_1lali49_c1e5qbb3__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:var(--plasma-cell-gap);height:auto;}
|
|
18
|
+
.Cell_styles_1lali49_cdgokyj__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto;}
|
|
19
|
+
.Cell_styles_1lali49_c1k87ec1__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1k87ec1-0);-webkit-box-align:var(--c1k87ec1-0);-ms-flex-align:var(--c1k87ec1-0);align-items:var(--c1k87ec1-0);}
|
|
20
|
+
.Cell_styles_1lali49_c1spqh22__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1spqh22-0);-webkit-box-align:var(--c1spqh22-0);-ms-flex-align:var(--c1spqh22-0);align-items:var(--c1spqh22-0);text-align:right;}
|
|
21
|
+
|
|
22
|
+
.base_pir0qf_b1sr9i7l__baa3f156{color:var(--plasma-cell-color);background-color:var(--plasma-cell-background-color);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;gap:var(--plasma-cell-gap);}.base_pir0qf_b1sr9i7l__baa3f156:focus{outline:0 none;}
|
|
23
|
+
|
|
24
|
+
.CellTextbox_styles_rgpies_cz0uqdu__c842929b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-cell-textbox-gap);}
|
|
25
|
+
|
|
26
|
+
.Cell_styles_1nus00g_s3czsgs__9c0e5e1b{white-space:nowrap;height:var(--plasma-file-cell-height);--plasma-cell-width:100%;--plasma-cell-gap:var(--plasma-file-cell-gap);}.Cell_styles_1nus00g_s3czsgs__9c0e5e1b.Cell_styles_1nus00g_fileActionLeft__9c0e5e1b .Cell_styles_1nus00g_c1spqh22__9c0e5e1b{-webkit-order:-1;-ms-flex-order:-1;order:-1;}
|
|
27
|
+
.Cell_styles_1nus00g_f1g9th3m__9c0e5e1b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-file-cell-textbox-gap);}
|
|
28
|
+
.Cell_styles_1nus00g_f141hb5t__9c0e5e1b{display:inline-grid;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr;min-width:8ch;color:var(--plasma-file-cell-title-color);font-family:var(--plasma-file-cell-title-font-family);font-size:var(--plasma-file-cell-title-font-size);font-style:var(--plasma-file-cell-title-font-style);font-weight:var(--plasma-file-cell-title-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-title-letter-spacing);letter-spacing:var(--plasma-file-cell-title-letter-spacing);line-height:var(--plasma-file-cell-title-line-height);}
|
|
29
|
+
.Cell_styles_1nus00g_t15n7eg9__9c0e5e1b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
30
|
+
|
|
31
|
+
.Cell_styles_1nus00g_fv8e3ac__9c0e5e1b{color:var(--plasma-file-cell-subtitle-color);font-family:var(--plasma-file-cell-subtitle-font-family);font-size:var(--plasma-file-cell-subtitle-font-size);font-style:var(--plasma-file-cell-subtitle-font-style);font-weight:var(--plasma-file-cell-subtitle-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);line-height:var(--plasma-file-cell-subtitle-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
32
|
+
|
|
33
|
+
.base_1gusher_b1chvyq8__76b641f5{color:var(--plasma-spinner-color);}
|
|
34
|
+
|
|
35
|
+
.base_ova69f_bw56nfh__55225c7f{width:var(--plasma-spinner-size);height:var(--plasma-spinner-size);}
|
|
36
|
+
|
|
37
|
+
.Spinner_styles_13q7ndk_b1hp2dsz__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;box-sizing:border-box;}
|
|
38
|
+
.Spinner_styles_13q7ndk_s122r4cn__af962114{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:var(--s122r4cn-0);height:var(--s122r4cn-1);-webkit-animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;animation:Spinner_styles_13q7ndk_rotateS122r4cn__af962114 1s linear infinite;}@-webkit-keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}@keyframes Spinner_styles_13q7ndk_rotateS122r4cn__af962114{from{-webkit-transform:rotate(0);-ms-transform:rotate(0);transform:rotate(0);}to{-webkit-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}}
|
|
39
|
+
|
|
40
|
+
.Button_styles_wo15lb_bzw1898__45fe6281{min-width:4ch;color:var(--plasma-button-text-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.Button_styles_wo15lb_bzw1898__45fe6281.Button_styles_wo15lb_buttonContentRelaxed__45fe6281{-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;text-align:start;}
|
|
41
|
+
.Button_styles_wo15lb_sdfuqwe__45fe6281{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin:var(--plasma-button-additional-content-margin);}.Button_styles_wo15lb_sdfuqwe__45fe6281.Button_styles_wo15lb_buttonContentRelaxed__45fe6281{text-align:start;-webkit-box-flex:2;-webkit-flex-grow:2;-ms-flex-positive:2;flex-grow:2;}.Button_styles_wo15lb_sdfuqwe__45fe6281.Button_styles_wo15lb_buttonHasValue__45fe6281{margin-right:var(--plasma-button-additional-content-margin-right-width-value);}
|
|
42
|
+
.Button_styles_wo15lb_b9ypozh__45fe6281{color:var(--plasma-button-value-color);margin:var(--plasma-button-value-margin);min-width:4ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
43
|
+
.Button_styles_wo15lb_l4dfhbg__45fe6281{opacity:var(--l4dfhbg-0);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:inherit;-webkit-box-align:inherit;-ms-flex-align:inherit;align-items:inherit;-webkit-box-pack:var(--l4dfhbg-1);-webkit-justify-content:var(--l4dfhbg-1);-ms-flex-pack:var(--l4dfhbg-1);justify-content:var(--l4dfhbg-1);height:100%;width:100%;}
|
|
44
|
+
.Button_styles_wo15lb_lrdlazt__45fe6281{position:absolute;}
|
|
45
|
+
.Button_styles_wo15lb_s7rggv0__45fe6281{--plasma-spinner-size:var(--plasma-button-spinner-size);--plasma-spinner-color:var(--plasma-button-spinner-color);}
|
|
46
|
+
.Button_styles_wo15lb_s1rjh7ra__45fe6281{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-left-content-align-self);-ms-flex-item-align:var(--plasma-button-left-content-align);align-self:var(--plasma-button-left-content-align-self);color:var(--plasma-button-icon-color);margin:var(--s1rjh7ra-0);}
|
|
47
|
+
.Button_styles_wo15lb_s9ga1dj__45fe6281{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-self:var(--plasma-button-right-content-align-self);-ms-flex-item-align:var(--plasma-button-right-content-align);align-self:var(--plasma-button-right-content-align-self);color:var(--plasma-button-icon-color);margin:var(--s9ga1dj-0);}
|
|
48
|
+
.Button_styles_wo15lb_babf779__45fe6281{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);}a.Button_styles_wo15lb_babf779__45fe6281{-webkit-text-decoration:none;text-decoration:none;}.Button_styles_wo15lb_babf779__45fe6281.Button_styles_wo15lb_babf779__45fe6281.Button_styles_wo15lb_buttonSquare__45fe6281{width:var(--plasma-button-height);padding:0;}
|
|
49
|
+
|
|
50
|
+
.base_3okasg_b1ty39ru__477848f8{color:var(--plasma-button-color);background:var(--plasma-button-background-color);}.base_3okasg_b1ty39ru__477848f8.base_3okasg_buttonLoading__477848f8{background:var(--plasma-button-loading-background-color);}@media (hover:hover) and (pointer:fine){.base_3okasg_b1ty39ru__477848f8:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}}.base_3okasg_b1ty39ru__477848f8:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}
|
|
51
|
+
|
|
52
|
+
.base_1alzrso_be0ha5g__cdc67255{height:var(--plasma-button-height);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);}
|
|
53
|
+
|
|
54
|
+
.base_do83p2_b169l30m__044ccc85[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}.base_do83p2_b169l30m__044ccc85[disabled]:hover,.base_do83p2_b169l30m__044ccc85[disabled]:active{scale:none;color:var(--plasma-button-color);background:var(--plasma-button-background-color);}
|
|
55
|
+
|
|
56
|
+
.base_sl2bqh_b187cmzt__515f87fd{position:relative;}.base_sl2bqh_b187cmzt__515f87fd:focus{outline:none;}.base_sl2bqh_b187cmzt__515f87fd:focus-visible{outline:none;}.base_sl2bqh_b187cmzt__515f87fd::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.base_sl2bqh_b187cmzt__515f87fd.base_sl2bqh_focusVisible__515f87fd:focus::before,.base_sl2bqh_b187cmzt__515f87fd[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}
|
|
57
|
+
|
|
58
|
+
.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFixed__bd4ad37e{width:var(--plasma-button-width);}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingFilled__bd4ad37e{width:100%;}.base_hy8dc_bdz31nb__bd4ad37e.base_hy8dc_buttonStretchingAuto__bd4ad37e{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
|
|
59
|
+
|
|
60
|
+
.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);--plasma_private-btn-br:var(--plasma_computed-btn-br);border-radius:var(--plasma_private-btn-br);color:var(--plasma-button-color);background:var(--plasma-button-background-color);height:var(--plasma-button-height);width:var(--plasma-button-width);padding:0 var(--plasma-button-padding,calc(var(--plasma-button-height) * 1.618 / 4));font-family:var(--plasma-button-font-family);font-size:var(--plasma-button-font-size);font-style:var(--plasma-button-font-style);font-weight:var(--plasma-button-font-weight);-webkit-letter-spacing:var(--plasma-button-letter-spacing);-moz-letter-spacing:var(--plasma-button-letter-spacing);-ms-letter-spacing:var(--plasma-button-letter-spacing);letter-spacing:var(--plasma-button-letter-spacing);line-height:var(--plasma-button-line-height);--plasma_private-btn-outline-size:var(--plasma-button-outline-size,0.0625rem);position:relative;--plasma-button-padding:var(--plasma-embed-icon-button-padding);--plasma-button-color:var(--plasma-embed-icon-button-color);--plasma-button-background-color:var(--plasma-embed-icon-button-background-color);--plasma-button-color-hover:var(--plasma-embed-icon-button-color-hover);--plasma-button-background-color-hover:var(--plasma-embed-icon-button-background-color-hover);--plasma-button-color-active:var(--plasma-embed-icon-button-color-active);--plasma-button-background-color-active:var(--plasma-embed-icon-button-background-color-active);--plasma-button-loading-background-color:var(--plasma-embed-icon-button-loading-background-color);--plasma-button-font-family:var(--plasma-embed-icon-button-font-family);--plasma-button-font-size:var(--plasma-embed-icon-button-font-size);--plasma-button-font-style:var(--plasma-embed-icon-button-font-style);--plasma-button-font-weight:var(--plasma-embed-icon-button-font-weight);--plasma-button-letter-spacing:var(--plasma-embed-icon-button-letter-spacing);--plasma-button-line-height:var(--plasma-embed-icon-button-line-height);--plasma-button-width:var(--plasma-embed-icon-button-width);--plasma-button-height:var(--plasma-embed-icon-button-height);--plasma-button-radius:var(--plasma-embed-icon-button-radius);--plasma-button-disabled-opacity:var(--plasma-embed-icon-button-disabled-opacity);--plasma-button-focus-color:var(--plasma-embed-icon-button-focus-color);--plasma-button-spinner-size:var(--plasma-embed-icon-button-spinner-size);--plasma-button-spinner-color:var(--plasma-embed-icon-button-spinner-color);}a.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044{-webkit-text-decoration:none;text-decoration:none;}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_buttonSquare__13bd0044{width:var(--plasma-button-height);padding:0;}@media (hover:hover) and (pointer:fine){.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044:hover{color:var(--plasma-button-color-hover,var(--plasma-button-color));background:var(--plasma-button-background-color-hover,var(--plasma-button-background-color));scale:var(--plasma-button-scale-hover);}}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044:active{color:var(--plasma-button-color-active,var(--plasma-button-color));background:var(--plasma-button-background-color-active,var(--plasma-button-background-color));scale:var(---plasma-button-scale-active);}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044:focus-visible{outline:none;}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044::before{content:'';position:absolute;top:-0.125rem;left:-0.125rem;right:-0.125rem;bottom:-0.125rem;z-index:1;display:block;box-sizing:content-box;border:var(--plasma_private-btn-outline-size) solid transparent;border-radius:calc(0.125rem + var(--plasma_private-btn-br));-webkit-transition:box-shadow 0.2s ease-in-out;transition:box-shadow 0.2s ease-in-out;pointer-events:none;}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_focusVisible__13bd0044:focus::before,.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044[data-focus-visible-added]::before{outline:none;box-shadow:0 0 0 var(--plasma_private-btn-outline-size) var(--plasma-button-focus-color);}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044[disabled]{opacity:var(--plasma-button-disabled-opacity);cursor:not-allowed;}@media (hover:hover) and (pointer:fine){.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044[disabled]:hover,.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044[disabled]:active{scale:none;color:var(--plasma-button-color);background:var(--plasma-button-background-color);}}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_buttonStretchingFixed__13bd0044{width:var(--plasma-button-width);}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_buttonStretchingFilled__13bd0044{width:100%;}.EmbedIconButton_styles_1n2j754_bhhav47__13bd0044.EmbedIconButton_styles_1n2j754_buttonStretchingAuto__13bd0044{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;}
|
|
61
|
+
|
|
62
|
+
.EmbedIconButton_styles_15pej3s_e3v51gd__38fa766b{--plasma-embed-icon-button-color:var(--plasma-file-embed-icon-button-color);--plasma-embed-icon-button-color-hover:var(--plasma-file-embed-icon-button-color-hover);--plasma-embed-icon-button-color-active:var(--plasma-file-embed-icon-button-color-active);--plasma-embed-icon-button-height:var(--plasma-file-embed-icon-button-height);--plasma-embed-icon-button-width:var(--plasma-file-embed-icon-button-width);--plasma-embed-icon-button-padding:var(--plasma-file-embed-icon-button-padding);--plasma-embed-icon-button-radius:var(--plasma-file-embed-icon-button-radius);--plasma-embed-icon-button-focus-color:var(--plasma-file-embed-icon-button-focus-color);}
|
|
63
|
+
|
|
64
|
+
.Progress_styles_1co5z1v_blc0ex6__856bd32c{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
|
65
|
+
.Progress_styles_1co5z1v_swmawm7__856bd32c{width:100%;position:relative;}
|
|
66
|
+
.Progress_styles_1co5z1v_s1mmwynp__856bd32c{position:absolute;left:0;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:var(--s1mmwynp-0);}
|
|
67
|
+
.Progress_styles_1co5z1v_s1oe6gw0__856bd32c{font-family:var(--plasma-typo-caption-font-family);font-weight:var(--plasma-typo-caption-font-weight);font-style:var(--plasma-typo-caption-font-style);font-size:var(--plasma-typo-caption-font-size);-webkit-letter-spacing:var(--plasma-typo-caption-letter-spacing);-moz-letter-spacing:var(--plasma-typo-caption-letter-spacing);-ms-letter-spacing:var(--plasma-typo-caption-letter-spacing);letter-spacing:var(--plasma-typo-caption-letter-spacing);line-height:var(--plasma-typo-caption-line-height);}
|
|
68
|
+
|
|
69
|
+
.base_1qnkfja_b1qw8a6e__0b9c871d .base_1qnkfja_swmawm7__0b9c871d{background:var(--plasma-progress-track-background-color);}.base_1qnkfja_b1qw8a6e__0b9c871d .base_1qnkfja_s1mmwynp__0b9c871d{background:var(--plasma-progress-filled-background-color);}.base_1qnkfja_b1qw8a6e__0b9c871d .base_1qnkfja_s1oe6gw0__0b9c871d{color:var(--plasma-progress-value-color);}
|
|
70
|
+
|
|
71
|
+
.base_1gha00t_blzorgi__0445cc63 .base_1gha00t_swmawm7__0445cc63{height:var(--plasma-progress-track-height);border-radius:var(--plasma-progress-track-border-radius);}.base_1gha00t_blzorgi__0445cc63 .base_1gha00t_s1mmwynp__0445cc63{height:var(--plasma-progress-filled-height);border-radius:var(--plasma-progress-filled-border-radius);}.base_1gha00t_blzorgi__0445cc63 .base_1gha00t_s1oe6gw0__0445cc63{margin-left:var(--plasma-progress-value-margin-left);}
|
|
72
|
+
|
|
73
|
+
.ProgressBarCircular_styles_16hxdvd_b18reh89__8bec966a{position:relative;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;box-sizing:border-box;width:var(--plasma-progressbar-circular-height);height:var(--plasma-progressbar-circular-height);}
|
|
74
|
+
.ProgressBarCircular_styles_16hxdvd_s2tt3b5__8bec966a{width:100%;height:100%;}
|
|
75
|
+
.ProgressBarCircular_styles_16hxdvd_slvt37h__8bec966a{fill:none;r:var(--slvt37h-0);stroke:var(--plasma-progressbar-circular-background-stroke);stroke-width:var(--slvt37h-1);}
|
|
76
|
+
.ProgressBarCircular_styles_16hxdvd_s1d8ncmi__8bec966a{--percentage:var(--s1d8ncmi-0);--radius:var(--s1d8ncmi-1);--circumference:calc(calc(2 * 3.1415926535) * var(--radius));--dashoffset:calc(var(--circumference) - (var(--percentage,0) * var(--circumference) / 100));fill:none;stroke:var(--plasma-progressbar-circular-progress-stroke);stroke-width:var(--s1d8ncmi-2);stroke-linecap:round;r:var(--radius);stroke-dasharray:var(--circumference);stroke-dashoffset:var(--dashoffset);-webkit-transition:stroke-dashoffset 0.3s linear;transition:stroke-dashoffset 0.3s linear;}
|
|
77
|
+
.ProgressBarCircular_styles_16hxdvd_sg9aoc4__8bec966a{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);color:var(--plasma-progressbar-circular-content-color);font-family:var(--plasma-progressbar-circular-content-font-family);font-size:var(--plasma-progressbar-circular-content-font-size);font-style:var(--plasma-progressbar-circular-content-font-style);font-weight:var(--plasma-progressbar-circular-content-font-weight);-webkit-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);-moz-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);-ms-letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);letter-spacing:var(--plasma-progressbar-circular-content-letter-spacing);line-height:var(--plasma-progressbar-circular-content-line-height);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}
|
|
78
|
+
|
|
79
|
+
.Loader_styles_10xh4ax_p8jxzss__79efb33a{--plasma-progressbar-circular-size:var(--plasma-file-progressbar-circular-size);--plasma-progressbar-circular-width:var(--plasma-file-progressbar-circular-width);--plasma-progressbar-circular-height:var(--plasma-file-progressbar-circular-height);--plasma-progressbar-circular-stroke-width:var(--plasma-file-progressbar-circular-stroke-width);--plasma-progressbar-circular-stroke-size:var(--plasma-file-progressbar-circular-stroke-size);--plasma-progressbar-circular-background-stroke:var(--plasma-file-progressbar-circular-background-stroke);--plasma-progressbar-circular-progress-stroke:var(--plasma-file-progressbar-circular-stroke);--plasma-progressbar-circular-content-color:var(--plasma-file-progressbar-circular-content-color);}
|
|
80
|
+
.Loader_styles_10xh4ax_pfkaftk__79efb33a{--plasma-progress-track-background-color:var(--plasma-file-progress-track-background-color);--plasma-progress-track-height:var(--plasma-file-progress-track-height);--plasma-progress-track-border-radius:var(--plasma-file-progress-track-border-radius);--plasma-progress-filled-background-color:var(--plasma-file-progress-filled-background-color);--plasma-progress-filled-height:var(--plasma-file-progress-filled-height);--plasma-progress-filled-border-radius:var(--plasma-file-progress-filled-border-radius);width:100%;}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var cls = require('classnames');
|
|
8
|
+
var getFileIcon = require('./utils/getFileIcon.js');
|
|
9
|
+
var base = require('./variations/_view/base.js');
|
|
10
|
+
var base$1 = require('./variations/_size/base.js');
|
|
11
|
+
var base$2 = require('./variations/_disabled/base.js');
|
|
12
|
+
var File_styles = require('./File.styles.js');
|
|
13
|
+
var File_tokens = require('./File.tokens.js');
|
|
14
|
+
var extractExtension = require('../Attach/utils/extractExtension.js');
|
|
15
|
+
var Cell = require('./ui/Cell/Cell.js');
|
|
16
|
+
var Loader_styles = require('./ui/Loader/Loader.styles.js');
|
|
17
|
+
var getSizeValueFromProp = require('../../utils/getSizeValueFromProp.js');
|
|
18
|
+
var EmbedIconButton_styles = require('./ui/EmbedIconButton/EmbedIconButton.styles.js');
|
|
19
|
+
|
|
20
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
21
|
+
|
|
22
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
23
|
+
var cls__default = /*#__PURE__*/_interopDefault(cls);
|
|
24
|
+
|
|
25
|
+
var _excluded = ["className", "style", "filename", "description", "actionContent", "actionPlacement", "fileUrl", "thumbUrl", "thumbIcon", "fileContainerWidth", "stretched", "loader", "isLoading", "loaderType", "loaderValue", "loaderMaxValue", "view", "size", "disabled", "onCancel", "onActionClick"];
|
|
26
|
+
var fileRoot = function fileRoot(Root) {
|
|
27
|
+
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
28
|
+
var _ProgressBarCircularU, _EmbedIconButtonUI, _FileThumb, _FileThumb2;
|
|
29
|
+
var className = props.className,
|
|
30
|
+
style = props.style,
|
|
31
|
+
filename = props.filename,
|
|
32
|
+
description = props.description,
|
|
33
|
+
actionContent = props.actionContent,
|
|
34
|
+
_props$actionPlacemen = props.actionPlacement,
|
|
35
|
+
actionPlacement = _props$actionPlacemen === void 0 ? 'right' : _props$actionPlacemen,
|
|
36
|
+
fileUrl = props.fileUrl,
|
|
37
|
+
thumbUrl = props.thumbUrl,
|
|
38
|
+
thumbIcon = props.thumbIcon,
|
|
39
|
+
_props$fileContainerW = props.fileContainerWidth,
|
|
40
|
+
fileContainerWidth = _props$fileContainerW === void 0 ? '100%' : _props$fileContainerW,
|
|
41
|
+
stretched = props.stretched,
|
|
42
|
+
loader = props.loader,
|
|
43
|
+
_props$isLoading = props.isLoading,
|
|
44
|
+
isLoading = _props$isLoading === void 0 ? false : _props$isLoading,
|
|
45
|
+
_props$loaderType = props.loaderType,
|
|
46
|
+
loaderType = _props$loaderType === void 0 ? 'circular' : _props$loaderType,
|
|
47
|
+
_props$loaderValue = props.loaderValue,
|
|
48
|
+
loaderValue = _props$loaderValue === void 0 ? 0 : _props$loaderValue,
|
|
49
|
+
_props$loaderMaxValue = props.loaderMaxValue,
|
|
50
|
+
loaderMaxValue = _props$loaderMaxValue === void 0 ? 100 : _props$loaderMaxValue,
|
|
51
|
+
view = props.view,
|
|
52
|
+
size = props.size,
|
|
53
|
+
_props$disabled = props.disabled,
|
|
54
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
55
|
+
onCancel = props.onCancel,
|
|
56
|
+
onActionClick = props.onActionClick,
|
|
57
|
+
rest = _rollupPluginBabelHelpers.objectWithoutProperties(props, _excluded);
|
|
58
|
+
var _useMemo = React.useMemo(function () {
|
|
59
|
+
var ext = extractExtension.extractExtension(filename) || '';
|
|
60
|
+
var name = ext ? filename.slice(0, -1 - ext.length) : filename;
|
|
61
|
+
return {
|
|
62
|
+
extension: ext,
|
|
63
|
+
filenameWithoutExtension: name
|
|
64
|
+
};
|
|
65
|
+
}, [filename]),
|
|
66
|
+
extension = _useMemo.extension,
|
|
67
|
+
filenameWithoutExtension = _useMemo.filenameWithoutExtension;
|
|
68
|
+
var actualInnerWidth = React.useMemo(function () {
|
|
69
|
+
var fileContainerWidthValue = fileContainerWidth ? getSizeValueFromProp.getSizeValueFromProp(fileContainerWidth, 'rem') : '100%';
|
|
70
|
+
return stretched ? '100%' : fileContainerWidthValue;
|
|
71
|
+
}, [fileContainerWidth, stretched]);
|
|
72
|
+
var renderAction = function renderAction() {
|
|
73
|
+
if (isLoading && loaderType === 'circular') {
|
|
74
|
+
return loader || _ProgressBarCircularU || (_ProgressBarCircularU = /*#__PURE__*/React__default.default.createElement(Loader_styles.ProgressBarCircularUI, {
|
|
75
|
+
value: loaderValue,
|
|
76
|
+
maxValue: loaderMaxValue
|
|
77
|
+
}, /*#__PURE__*/React__default.default.createElement(EmbedIconButton_styles.EmbedIconButtonUI, {
|
|
78
|
+
onClick: onCancel,
|
|
79
|
+
type: "button",
|
|
80
|
+
"aria-label": "Cancel"
|
|
81
|
+
}, actionContent)));
|
|
82
|
+
}
|
|
83
|
+
if (actionContent) {
|
|
84
|
+
return _EmbedIconButtonUI || (_EmbedIconButtonUI = /*#__PURE__*/React__default.default.createElement(EmbedIconButton_styles.EmbedIconButtonUI, {
|
|
85
|
+
onClick: onActionClick
|
|
86
|
+
}, actionContent));
|
|
87
|
+
}
|
|
88
|
+
return null;
|
|
89
|
+
};
|
|
90
|
+
var renderFileThumb = function renderFileThumb() {
|
|
91
|
+
if (actionPlacement === 'left') {
|
|
92
|
+
return renderAction();
|
|
93
|
+
}
|
|
94
|
+
if (thumbUrl) {
|
|
95
|
+
return _FileThumb || (_FileThumb = /*#__PURE__*/React__default.default.createElement(File_styles.FileThumb, null, /*#__PURE__*/React__default.default.createElement(File_styles.ThumbImg, {
|
|
96
|
+
src: thumbUrl,
|
|
97
|
+
alt: ""
|
|
98
|
+
})));
|
|
99
|
+
}
|
|
100
|
+
if (thumbIcon) {
|
|
101
|
+
return _FileThumb2 || (_FileThumb2 = /*#__PURE__*/React__default.default.createElement(File_styles.FileThumb, null, thumbIcon));
|
|
102
|
+
}
|
|
103
|
+
if (fileUrl) {
|
|
104
|
+
return /*#__PURE__*/React__default.default.createElement(File_styles.FileThumb, null, getFileIcon.getFileIcon(extension, size));
|
|
105
|
+
}
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
return /*#__PURE__*/React__default.default.createElement(Root, _rollupPluginBabelHelpers.extends({
|
|
109
|
+
ref: ref,
|
|
110
|
+
className: cls__default.default(className, File_tokens.classes.fileItem, _rollupPluginBabelHelpers.defineProperty({}, File_tokens.classes.fileLoaderLinear, loaderType === 'linear')),
|
|
111
|
+
view: view,
|
|
112
|
+
size: size,
|
|
113
|
+
disabled: disabled,
|
|
114
|
+
style: _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, style), {}, _rollupPluginBabelHelpers.defineProperty({}, File_tokens.privateTokens.fileInnerWidth, actualInnerWidth))
|
|
115
|
+
}, rest), /*#__PURE__*/React__default.default.createElement(Cell.CellUI, {
|
|
116
|
+
className: cls__default.default(_rollupPluginBabelHelpers.defineProperty({}, File_tokens.classes.fileActionLeft, actionPlacement === 'left')),
|
|
117
|
+
filenameWithoutExtension: filenameWithoutExtension,
|
|
118
|
+
extension: extension,
|
|
119
|
+
description: description,
|
|
120
|
+
size: size,
|
|
121
|
+
cellContentLeft: renderFileThumb(),
|
|
122
|
+
cellContentRight: actionPlacement === 'right' ? renderAction() : null
|
|
123
|
+
}), isLoading && loaderType === 'linear' && /*#__PURE__*/React__default.default.createElement(React__default.default.Fragment, null, loader || /*#__PURE__*/React__default.default.createElement(Loader_styles.ProgressUI, {
|
|
124
|
+
displayValue: false,
|
|
125
|
+
value: loaderValue
|
|
126
|
+
})));
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
var fileConfig = {
|
|
130
|
+
name: 'File',
|
|
131
|
+
tag: 'div',
|
|
132
|
+
layout: fileRoot,
|
|
133
|
+
base: File_styles.base,
|
|
134
|
+
variations: {
|
|
135
|
+
view: {
|
|
136
|
+
css: base.base
|
|
137
|
+
},
|
|
138
|
+
size: {
|
|
139
|
+
css: base$1.base
|
|
140
|
+
},
|
|
141
|
+
disabled: {
|
|
142
|
+
css: base$2.base,
|
|
143
|
+
attrs: true
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
defaults: {
|
|
147
|
+
view: 'default',
|
|
148
|
+
size: 'm'
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.fileConfig = fileConfig;
|
|
153
|
+
exports.fileRoot = fileRoot;
|
|
154
|
+
//# sourceMappingURL=File.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","sources":["../../../../../src/components/File/File.tsx"],"sourcesContent":["import React, { forwardRef, useMemo } from 'react';\nimport cls from 'classnames';\nimport { getSizeValueFromProp } from 'src/utils';\nimport type { RootProps } from 'src/engines';\n\nimport { extractExtension } from '../Attach/utils';\n\nimport { getFileIcon } from './utils/getFileIcon';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\nimport type { FileProps, FileRootProps } from './File.types';\nimport { base, FileThumb, ThumbImg } from './File.styles';\nimport { classes, privateTokens } from './File.tokens';\nimport { CellUI, EmbedIconButtonUI, ProgressBarCircularUI, ProgressUI } from './ui';\n\nexport const fileRoot = (Root: RootProps<HTMLDivElement, FileRootProps>) =>\n forwardRef<HTMLDivElement, FileProps>((props, ref) => {\n const {\n className,\n style,\n\n // layout\n filename,\n description,\n actionContent,\n actionPlacement = 'right',\n fileUrl,\n thumbUrl,\n thumbIcon,\n fileContainerWidth = '100%',\n stretched,\n\n // loader\n loader,\n isLoading = false,\n loaderType = 'circular',\n loaderValue = 0,\n loaderMaxValue = 100,\n\n // variations\n view,\n size,\n disabled = false,\n\n // events\n onCancel,\n onActionClick,\n\n ...rest\n } = props;\n const { extension, filenameWithoutExtension } = useMemo(() => {\n const ext = extractExtension(filename) || '';\n const name = ext ? filename.slice(0, -1 - ext.length) : filename;\n return { extension: ext, filenameWithoutExtension: name };\n }, [filename]);\n\n const actualInnerWidth = useMemo(() => {\n const fileContainerWidthValue = fileContainerWidth\n ? getSizeValueFromProp(fileContainerWidth, 'rem')\n : '100%';\n\n return stretched ? '100%' : fileContainerWidthValue;\n }, [fileContainerWidth, stretched]);\n\n const renderAction = () => {\n if (isLoading && loaderType === 'circular') {\n return (\n loader || (\n <ProgressBarCircularUI value={loaderValue} maxValue={loaderMaxValue}>\n <EmbedIconButtonUI onClick={onCancel} type=\"button\" aria-label=\"Cancel\">\n {actionContent}\n </EmbedIconButtonUI>\n </ProgressBarCircularUI>\n )\n );\n }\n\n if (actionContent) {\n return <EmbedIconButtonUI onClick={onActionClick}>{actionContent}</EmbedIconButtonUI>;\n }\n\n return null;\n };\n\n const renderFileThumb = () => {\n if (actionPlacement === 'left') {\n return renderAction();\n }\n\n if (thumbUrl) {\n return (\n <FileThumb>\n <ThumbImg src={thumbUrl} alt=\"\" />\n </FileThumb>\n );\n }\n\n if (thumbIcon) {\n return <FileThumb>{thumbIcon}</FileThumb>;\n }\n\n if (fileUrl) {\n return <FileThumb>{getFileIcon(extension, size)}</FileThumb>;\n }\n\n return null;\n };\n\n return (\n <Root\n ref={ref}\n className={cls(className, classes.fileItem, { [classes.fileLoaderLinear]: loaderType === 'linear' })}\n view={view}\n size={size}\n disabled={disabled}\n style={{\n ...style,\n [privateTokens.fileInnerWidth]: actualInnerWidth,\n }}\n {...rest}\n >\n <CellUI\n className={cls({ [classes.fileActionLeft]: actionPlacement === 'left' })}\n filenameWithoutExtension={filenameWithoutExtension}\n extension={extension}\n description={description}\n size={size}\n cellContentLeft={renderFileThumb()}\n cellContentRight={actionPlacement === 'right' ? renderAction() : null}\n />\n {isLoading && loaderType === 'linear' && (\n <>{loader || <ProgressUI displayValue={false} value={loaderValue} />}</>\n )}\n </Root>\n );\n });\n\nexport const fileConfig = {\n name: 'File',\n tag: 'div',\n layout: fileRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n view: 'default',\n size: 'm',\n },\n};\n"],"names":["fileRoot","Root","forwardRef","props","ref","_ProgressBarCircularU","_EmbedIconButtonUI","_FileThumb","_FileThumb2","className","style","filename","description","actionContent","_props$actionPlacemen","actionPlacement","fileUrl","thumbUrl","thumbIcon","_props$fileContainerW","fileContainerWidth","stretched","loader","_props$isLoading","isLoading","_props$loaderType","loaderType","_props$loaderValue","loaderValue","_props$loaderMaxValue","loaderMaxValue","view","size","_props$disabled","disabled","onCancel","onActionClick","rest","_objectWithoutProperties","_excluded","_useMemo","useMemo","ext","extractExtension","name","slice","length","extension","filenameWithoutExtension","actualInnerWidth","fileContainerWidthValue","getSizeValueFromProp","renderAction","React","createElement","ProgressBarCircularUI","value","maxValue","EmbedIconButtonUI","onClick","type","renderFileThumb","FileThumb","ThumbImg","src","alt","getFileIcon","_extends","cls","classes","fileItem","_defineProperty","fileLoaderLinear","_objectSpread","privateTokens","fileInnerWidth","CellUI","fileActionLeft","cellContentLeft","cellContentRight","Fragment","ProgressUI","displayValue","fileConfig","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;IAgBaA,QAAQ,GAAG,SAAXA,QAAQA,CAAIC,IAA8C,EAAA;AAAA,EAAA,oBACnEC,gBAAU,CAA4B,UAACC,KAAK,EAAEC,GAAG,EAAK;AAAA,IAAA,IAAAC,qBAAA,EAAAC,kBAAA,EAAAC,UAAA,EAAAC,WAAA,CAAA;AAClD,IAAA,IACIC,SAAS,GA+BTN,KAAK,CA/BLM,SAAS;MACTC,KAAK,GA8BLP,KAAK,CA9BLO,KAAK;MAGLC,QAAQ,GA2BRR,KAAK,CA3BLQ,QAAQ;MACRC,WAAW,GA0BXT,KAAK,CA1BLS,WAAW;MACXC,aAAa,GAyBbV,KAAK,CAzBLU,aAAa;MAAAC,qBAAA,GAyBbX,KAAK,CAxBLY,eAAe;AAAfA,MAAAA,eAAe,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,OAAO,GAAAA,qBAAA;MACzBE,OAAO,GAuBPb,KAAK,CAvBLa,OAAO;MACPC,QAAQ,GAsBRd,KAAK,CAtBLc,QAAQ;MACRC,SAAS,GAqBTf,KAAK,CArBLe,SAAS;MAAAC,qBAAA,GAqBThB,KAAK,CApBLiB,kBAAkB;AAAlBA,MAAAA,kBAAkB,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,qBAAA;MAC3BE,SAAS,GAmBTlB,KAAK,CAnBLkB,SAAS;MAGTC,MAAM,GAgBNnB,KAAK,CAhBLmB,MAAM;MAAAC,gBAAA,GAgBNpB,KAAK,CAfLqB,SAAS;AAATA,MAAAA,SAAS,GAAAD,gBAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,gBA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A,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAA;AACV,GAAA;AACJ;;;;;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
require('./File.styles_x6tfzx.css');
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var react = require('@linaria/react');
|
|
7
|
+
|
|
8
|
+
var FileThumb = /*#__PURE__*/react.styled('div')({
|
|
9
|
+
name: "FileThumb",
|
|
10
|
+
"class": "f1l1bm2h",
|
|
11
|
+
propsAsIs: false
|
|
12
|
+
});
|
|
13
|
+
var ThumbImg = /*#__PURE__*/react.styled('img')({
|
|
14
|
+
name: "ThumbImg",
|
|
15
|
+
"class": "t1o86cdi",
|
|
16
|
+
propsAsIs: false
|
|
17
|
+
});
|
|
18
|
+
var base = "b1bbw1jz";
|
|
19
|
+
|
|
20
|
+
exports.FileThumb = FileThumb;
|
|
21
|
+
exports.ThumbImg = ThumbImg;
|
|
22
|
+
exports.base = base;
|
|
23
|
+
//# sourceMappingURL=File.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.styles.js","sources":["../../../../../src/components/File/File.styles.ts"],"sourcesContent":["import { css } from '@linaria/core';\nimport { styled } from '@linaria/react';\n\nimport { IconClose } from '../_Icon';\n\nimport { classes, privateTokens, tokens } from './File.tokens';\n\nexport const StyledIconClose = styled(IconClose)`\n width: 100%;\n height: 100%;\n color: currentColor;\n`;\n\nexport const FileThumb = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n\n color: var(${tokens.cellTitleColor});\n\n width: var(${tokens.fileThumbSize});\n height: var(${tokens.fileThumbSize});\n margin: var(${tokens.fileThumbMargin});\n border-radius: var(${tokens.fileThumbRadius});\n`;\n\nexport const ThumbImg = styled.img`\n width: 100%;\n height: 100%;\n object-fit: cover;\n`;\n\nexport const base = css`\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: var(${privateTokens.fileInnerWidth});\n\n &.${classes.fileLoaderLinear} {\n gap: var(${tokens.progressLinearGap});\n }\n`;\n"],"names":["FileThumb","styled","name","class","propsAsIs","ThumbImg","base"],"mappings":";;;;;;AAaO,IAAMA,SAAS,gBAAGC,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,WAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAa9B,EAAA;AAEM,IAAMC,QAAQ,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,UAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAI7B,EAAA;AAEM,IAAME,IAAI,GAShB;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.s1m3tq90{width:100%;height:100%;color:currentColor;}
|
|
2
|
+
.f1l1bm2h{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow:hidden;color:var(--plasma-file-cell-title-color);width:var(--plasma-file-thumb-size);height:var(--plasma-file-thumb-size);margin:var(--plasma-file-thumb-margin);border-radius:var(--plasma-file-thumb-radius);}
|
|
3
|
+
.t1o86cdi{width:100%;height:100%;object-fit:cover;}
|
|
4
|
+
.b1bbw1jz{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;box-sizing:border-box;width:var(--plasma_private-file-inner-width);}.b1bbw1jz.file-loader-linear{gap:var(--plasma-file-content-linear-progress-gap);}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var classes = {
|
|
6
|
+
fileItem: 'file-item',
|
|
7
|
+
fileActionLeft: 'file-action-left',
|
|
8
|
+
fileLoaderLinear: 'file-loader-linear'
|
|
9
|
+
};
|
|
10
|
+
var privateTokens = {
|
|
11
|
+
fileInnerWidth: '--plasma_private-file-inner-width'
|
|
12
|
+
};
|
|
13
|
+
var tokens = {
|
|
14
|
+
// EmbedIconButton
|
|
15
|
+
embedIconButtonColor: '--plasma-file-embed-icon-button-color',
|
|
16
|
+
embedIconButtonColorHover: '--plasma-file-embed-icon-button-color-hover',
|
|
17
|
+
embedIconButtonColorActive: '--plasma-file-embed-icon-button-color-active',
|
|
18
|
+
embedIconButtonHeight: '--plasma-file-embed-icon-button-height',
|
|
19
|
+
embedIconButtonWidth: '--plasma-file-embed-icon-button-width',
|
|
20
|
+
embedIconButtonPadding: '--plasma-file-embed-icon-button-padding',
|
|
21
|
+
embedIconButtonRadius: '--plasma-file-embed-icon-button-radius',
|
|
22
|
+
embedIconButtonFocusColor: '--plasma-file-embed-icon-button-focus-color',
|
|
23
|
+
// Cell
|
|
24
|
+
cellHeight: '--plasma-file-cell-height',
|
|
25
|
+
cellGap: '--plasma-file-cell-gap',
|
|
26
|
+
cellTextboxGap: '--plasma-file-cell-textbox-gap',
|
|
27
|
+
cellPadding: '--plasma-file-cell-padding',
|
|
28
|
+
cellPaddingContent: '--plasma-file-cell-padding-content',
|
|
29
|
+
cellPaddingLeftContent: '--plasma-file-cell-padding-left-content',
|
|
30
|
+
cellPaddingRightContent: '--plasma-file-cell-padding-right-content',
|
|
31
|
+
cellTitleColor: '--plasma-file-cell-title-color',
|
|
32
|
+
cellSubtitleColor: '--plasma-file-cell-subtitle-color',
|
|
33
|
+
cellTitleFontFamily: '--plasma-file-cell-title-font-family',
|
|
34
|
+
cellTitleFontSize: '--plasma-file-cell-title-font-size',
|
|
35
|
+
cellTitleFontStyle: '--plasma-file-cell-title-font-style',
|
|
36
|
+
cellTitleFontWeight: '--plasma-file-cell-title-font-weight',
|
|
37
|
+
cellTitleLetterSpacing: '--plasma-file-cell-title-letter-spacing',
|
|
38
|
+
cellTitleLineHeight: '--plasma-file-cell-title-line-height',
|
|
39
|
+
cellSubtitleFontFamily: '--plasma-file-cell-subtitle-font-family',
|
|
40
|
+
cellSubtitleFontSize: '--plasma-file-cell-subtitle-font-size',
|
|
41
|
+
cellSubtitleFontStyle: '--plasma-file-cell-subtitle-font-style',
|
|
42
|
+
cellSubtitleFontWeight: '--plasma-file-cell-subtitle-font-weight',
|
|
43
|
+
cellSubtitleLetterSpacing: '--plasma-file-cell-subtitle-letter-spacing',
|
|
44
|
+
cellSubtitleLineHeight: '--plasma-file-cell-subtitle-line-height',
|
|
45
|
+
// ProgressBarCircular tokens
|
|
46
|
+
progressBarCircularContentColor: '--plasma-file-progressbar-circular-content-color',
|
|
47
|
+
progressBarCircularBackgroundStroke: '--plasma-file-progressbar-circular-background-stroke',
|
|
48
|
+
progressBarCircularStroke: '--plasma-file-progressbar-circular-stroke',
|
|
49
|
+
progressBarCircularSize: '--plasma-file-progressbar-circular-size',
|
|
50
|
+
progressBarCircularWidth: '--plasma-file-progressbar-circular-width',
|
|
51
|
+
progressBarCircularHeight: '--plasma-file-progressbar-circular-height',
|
|
52
|
+
progressBarCircularStrokeWidth: '--plasma-file-progressbar-circular-stroke-width',
|
|
53
|
+
progressBarCircularStrokeSize: '--plasma-file-progressbar-circular-stroke-size',
|
|
54
|
+
// Progress (linear) tokens
|
|
55
|
+
progressTrackBackgroundColor: '--plasma-file-progress-track-background-color',
|
|
56
|
+
progressFilledBackgroundColor: '--plasma-file-progress-filled-background-color',
|
|
57
|
+
progressTrackHeight: '--plasma-file-progress-track-height',
|
|
58
|
+
progressTrackBorderRadius: '--plasma-file-progress-track-border-radius',
|
|
59
|
+
progressFilledHeight: '--plasma-file-progress-filled-height',
|
|
60
|
+
progressFilledBorderRadius: '--plasma-file-progress-filled-border-radius',
|
|
61
|
+
progressLinearGap: '--plasma-file-content-linear-progress-gap',
|
|
62
|
+
// File
|
|
63
|
+
fileThumbSize: '--plasma-file-thumb-size',
|
|
64
|
+
fileThumbMargin: '--plasma-file-thumb-margin',
|
|
65
|
+
fileThumbRadius: '--plasma-file-thumb-radius',
|
|
66
|
+
fileDisabledOpacity: '--plasma-file-disabled-opacity'
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
exports.classes = classes;
|
|
70
|
+
exports.privateTokens = privateTokens;
|
|
71
|
+
exports.tokens = tokens;
|
|
72
|
+
//# sourceMappingURL=File.tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.tokens.js","sources":["../../../../../src/components/File/File.tokens.ts"],"sourcesContent":["export const classes = {\n fileItem: 'file-item',\n fileActionLeft: 'file-action-left',\n fileLoaderLinear: 'file-loader-linear',\n};\n\nexport const privateTokens = {\n fileInnerWidth: '--plasma_private-file-inner-width',\n};\n\nexport const tokens = {\n // EmbedIconButton\n embedIconButtonColor: '--plasma-file-embed-icon-button-color',\n embedIconButtonColorHover: '--plasma-file-embed-icon-button-color-hover',\n embedIconButtonColorActive: '--plasma-file-embed-icon-button-color-active',\n embedIconButtonHeight: '--plasma-file-embed-icon-button-height',\n embedIconButtonWidth: '--plasma-file-embed-icon-button-width',\n embedIconButtonPadding: '--plasma-file-embed-icon-button-padding',\n embedIconButtonRadius: '--plasma-file-embed-icon-button-radius',\n embedIconButtonFocusColor: '--plasma-file-embed-icon-button-focus-color',\n\n // Cell\n cellHeight: '--plasma-file-cell-height',\n cellGap: '--plasma-file-cell-gap',\n cellTextboxGap: '--plasma-file-cell-textbox-gap',\n\n cellPadding: '--plasma-file-cell-padding',\n cellPaddingContent: '--plasma-file-cell-padding-content',\n cellPaddingLeftContent: '--plasma-file-cell-padding-left-content',\n cellPaddingRightContent: '--plasma-file-cell-padding-right-content',\n\n cellTitleColor: '--plasma-file-cell-title-color',\n cellSubtitleColor: '--plasma-file-cell-subtitle-color',\n\n cellTitleFontFamily: '--plasma-file-cell-title-font-family',\n cellTitleFontSize: '--plasma-file-cell-title-font-size',\n cellTitleFontStyle: '--plasma-file-cell-title-font-style',\n cellTitleFontWeight: '--plasma-file-cell-title-font-weight',\n cellTitleLetterSpacing: '--plasma-file-cell-title-letter-spacing',\n cellTitleLineHeight: '--plasma-file-cell-title-line-height',\n\n cellSubtitleFontFamily: '--plasma-file-cell-subtitle-font-family',\n cellSubtitleFontSize: '--plasma-file-cell-subtitle-font-size',\n cellSubtitleFontStyle: '--plasma-file-cell-subtitle-font-style',\n cellSubtitleFontWeight: '--plasma-file-cell-subtitle-font-weight',\n cellSubtitleLetterSpacing: '--plasma-file-cell-subtitle-letter-spacing',\n cellSubtitleLineHeight: '--plasma-file-cell-subtitle-line-height',\n\n // ProgressBarCircular tokens\n progressBarCircularContentColor: '--plasma-file-progressbar-circular-content-color',\n progressBarCircularBackgroundStroke: '--plasma-file-progressbar-circular-background-stroke',\n progressBarCircularStroke: '--plasma-file-progressbar-circular-stroke',\n\n progressBarCircularSize: '--plasma-file-progressbar-circular-size',\n progressBarCircularWidth: '--plasma-file-progressbar-circular-width',\n progressBarCircularHeight: '--plasma-file-progressbar-circular-height',\n\n progressBarCircularStrokeWidth: '--plasma-file-progressbar-circular-stroke-width',\n progressBarCircularStrokeSize: '--plasma-file-progressbar-circular-stroke-size',\n\n // Progress (linear) tokens\n progressTrackBackgroundColor: '--plasma-file-progress-track-background-color',\n progressFilledBackgroundColor: '--plasma-file-progress-filled-background-color',\n\n progressTrackHeight: '--plasma-file-progress-track-height',\n progressTrackBorderRadius: '--plasma-file-progress-track-border-radius',\n progressFilledHeight: '--plasma-file-progress-filled-height',\n progressFilledBorderRadius: '--plasma-file-progress-filled-border-radius',\n\n progressLinearGap: '--plasma-file-content-linear-progress-gap',\n\n // File\n fileThumbSize: '--plasma-file-thumb-size',\n fileThumbMargin: '--plasma-file-thumb-margin',\n fileThumbRadius: '--plasma-file-thumb-radius',\n\n fileDisabledOpacity: '--plasma-file-disabled-opacity',\n};\n"],"names":["classes","fileItem","fileActionLeft","fileLoaderLinear","privateTokens","fileInnerWidth","tokens","embedIconButtonColor","embedIconButtonColorHover","embedIconButtonColorActive","embedIconButtonHeight","embedIconButtonWidth","embedIconButtonPadding","embedIconButtonRadius","embedIconButtonFocusColor","cellHeight","cellGap","cellTextboxGap","cellPadding","cellPaddingContent","cellPaddingLeftContent","cellPaddingRightContent","cellTitleColor","cellSubtitleColor","cellTitleFontFamily","cellTitleFontSize","cellTitleFontStyle","cellTitleFontWeight","cellTitleLetterSpacing","cellTitleLineHeight","cellSubtitleFontFamily","cellSubtitleFontSize","cellSubtitleFontStyle","cellSubtitleFontWeight","cellSubtitleLetterSpacing","cellSubtitleLineHeight","progressBarCircularContentColor","progressBarCircularBackgroundStroke","progressBarCircularStroke","progressBarCircularSize","progressBarCircularWidth","progressBarCircularHeight","progressBarCircularStrokeWidth","progressBarCircularStrokeSize","progressTrackBackgroundColor","progressFilledBackgroundColor","progressTrackHeight","progressTrackBorderRadius","progressFilledHeight","progressFilledBorderRadius","progressLinearGap","fileThumbSize","fileThumbMargin","fileThumbRadius","fileDisabledOpacity"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,QAAQ,EAAE,WAAW;AACrBC,EAAAA,cAAc,EAAE,kBAAkB;AAClCC,EAAAA,gBAAgB,EAAE,oBAAA;AACtB,EAAC;AAEM,IAAMC,aAAa,GAAG;AACzBC,EAAAA,cAAc,EAAE,mCAAA;AACpB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClB;AACAC,EAAAA,oBAAoB,EAAE,uCAAuC;AAC7DC,EAAAA,yBAAyB,EAAE,6CAA6C;AACxEC,EAAAA,0BAA0B,EAAE,8CAA8C;AAC1EC,EAAAA,qBAAqB,EAAE,wCAAwC;AAC/DC,EAAAA,oBAAoB,EAAE,uCAAuC;AAC7D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AAE,+CAA+C;AAC7EC,EAAAA,6BAA6B,EAAE,gDAAgD;AAE/EC,EAAAA,mBAAmB,EAAE,qCAAqC;AAC1DC,EAAAA,yBAAyB,EAAE,4CAA4C;AACvEC,EAAAA,oBAAoB,EAAE,sCAAsC;AAC5DC,EAAAA,0BAA0B,EAAE,6CAA6C;AAEzEC,EAAAA,iBAAiB,EAAE,2CAA2C;AAE9D;AACAC,EAAAA,aAAa,EAAE,0BAA0B;AACzCC,EAAAA,eAAe,EAAE,4BAA4B;AAC7CC,EAAAA,eAAe,EAAE,4BAA4B;AAE7CC,EAAAA,mBAAmB,EAAE,gCAAA;AACzB;;;;;;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.CellTextboxLabel_styles_1x97zqi_supiagz__b05150dd{color:var(--plasma-cell-label-color);font-size:var(--plasma-cell-label-font-size);font-weight:var(--plasma-cell-label-font-weight);font-family:var(--plasma-cell-label-font-family);font-style:var(--plasma-cell-label-font-style);line-height:var(--plasma-cell-label-line-height);-webkit-letter-spacing:var(--plasma-cell-label-letter-spacing);-moz-letter-spacing:var(--plasma-cell-label-letter-spacing);-ms-letter-spacing:var(--plasma-cell-label-letter-spacing);letter-spacing:var(--plasma-cell-label-letter-spacing);}
|
|
2
|
+
|
|
3
|
+
.CellTextboxTitle_styles_jogov7_s16psy9b__edbbb199{color:var(--plasma-cell-title-color);font-size:var(--plasma-cell-title-font-size);font-weight:var(--plasma-cell-title-font-weight);font-family:var(--plasma-cell-title-font-family);font-style:var(--plasma-cell-title-font-style);line-height:var(--plasma-cell-title-line-height);-webkit-letter-spacing:var(--plasma-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-cell-title-letter-spacing);letter-spacing:var(--plasma-cell-title-letter-spacing);}
|
|
4
|
+
|
|
5
|
+
.CellTextboxSubtitle_styles_n7i06q_s1bdz4u4__8e9f9a5a{color:var(--plasma-cell-subtitle-color);font-size:var(--plasma-cell-subtitle-font-size);font-weight:var(--plasma-cell-subtitle-font-weight);font-family:var(--plasma-cell-subtitle-font-family);font-style:var(--plasma-cell-subtitle-font-style);line-height:var(--plasma-cell-subtitle-line-height);-webkit-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-cell-subtitle-letter-spacing);}
|
|
6
|
+
|
|
7
|
+
.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFixed__a35afa10{width:var(--plasma-cell-width);}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingFilled__a35afa10{width:100%;}.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_b1wikybr__a35afa10.Cell_styles_1lali49_cellStretchingAuto__a35afa10{width:auto;}
|
|
8
|
+
.Cell_styles_1lali49_c1e5qbb3__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:auto;-ms-flex:auto;flex:auto;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;gap:var(--plasma-cell-gap);height:auto;}
|
|
9
|
+
.Cell_styles_1lali49_cdgokyj__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:auto;}
|
|
10
|
+
.Cell_styles_1lali49_c1k87ec1__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1k87ec1-0);-webkit-box-align:var(--c1k87ec1-0);-ms-flex-align:var(--c1k87ec1-0);align-items:var(--c1k87ec1-0);}
|
|
11
|
+
.Cell_styles_1lali49_c1spqh22__a35afa10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:var(--c1spqh22-0);-webkit-box-align:var(--c1spqh22-0);-ms-flex-align:var(--c1spqh22-0);align-items:var(--c1spqh22-0);text-align:right;}
|
|
12
|
+
|
|
13
|
+
.base_pir0qf_b1sr9i7l__baa3f156{color:var(--plasma-cell-color);background-color:var(--plasma-cell-background-color);width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;gap:var(--plasma-cell-gap);}.base_pir0qf_b1sr9i7l__baa3f156:focus{outline:0 none;}
|
|
14
|
+
|
|
15
|
+
.CellTextbox_styles_rgpies_cz0uqdu__c842929b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-cell-textbox-gap);}
|
|
16
|
+
|
|
17
|
+
.Cell_styles_1nus00g_s3czsgs__9c0e5e1b{white-space:nowrap;height:var(--plasma-file-cell-height);--plasma-cell-width:100%;--plasma-cell-gap:var(--plasma-file-cell-gap);}.Cell_styles_1nus00g_s3czsgs__9c0e5e1b.Cell_styles_1nus00g_fileActionLeft__9c0e5e1b .Cell_styles_1nus00g_c1spqh22__9c0e5e1b{-webkit-order:-1;-ms-flex-order:-1;order:-1;}
|
|
18
|
+
.Cell_styles_1nus00g_f1g9th3m__9c0e5e1b{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-file-cell-textbox-gap);}
|
|
19
|
+
.Cell_styles_1nus00g_f141hb5t__9c0e5e1b{display:inline-grid;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr;min-width:8ch;color:var(--plasma-file-cell-title-color);font-family:var(--plasma-file-cell-title-font-family);font-size:var(--plasma-file-cell-title-font-size);font-style:var(--plasma-file-cell-title-font-style);font-weight:var(--plasma-file-cell-title-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-title-letter-spacing);letter-spacing:var(--plasma-file-cell-title-letter-spacing);line-height:var(--plasma-file-cell-title-line-height);}
|
|
20
|
+
.Cell_styles_1nus00g_t15n7eg9__9c0e5e1b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
21
|
+
|
|
22
|
+
.Cell_styles_1nus00g_fv8e3ac__9c0e5e1b{color:var(--plasma-file-cell-subtitle-color);font-family:var(--plasma-file-cell-subtitle-font-family);font-size:var(--plasma-file-cell-subtitle-font-size);font-style:var(--plasma-file-cell-subtitle-font-style);font-weight:var(--plasma-file-cell-subtitle-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);line-height:var(--plasma-file-cell-subtitle-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var Cell_styles = require('./Cell.styles.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var CellUI = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13
|
+
var filenameWithoutExtension = _ref.filenameWithoutExtension,
|
|
14
|
+
extension = _ref.extension,
|
|
15
|
+
description = _ref.description,
|
|
16
|
+
className = _ref.className,
|
|
17
|
+
size = _ref.size,
|
|
18
|
+
cellContentLeft = _ref.cellContentLeft,
|
|
19
|
+
cellContentRight = _ref.cellContentRight;
|
|
20
|
+
return /*#__PURE__*/React__default.default.createElement(Cell_styles.StyledCell, {
|
|
21
|
+
ref: ref,
|
|
22
|
+
stretching: "filled",
|
|
23
|
+
size: size,
|
|
24
|
+
contentLeft: cellContentLeft,
|
|
25
|
+
contentRight: cellContentRight,
|
|
26
|
+
className: className
|
|
27
|
+
}, /*#__PURE__*/React__default.default.createElement(Cell_styles.FileInfoWrapper, null, /*#__PURE__*/React__default.default.createElement(Cell_styles.FilenameWrapper, null, /*#__PURE__*/React__default.default.createElement(Cell_styles.TruncatedFilenamePart, null, filenameWithoutExtension.slice(0, -1)), /*#__PURE__*/React__default.default.createElement(Cell_styles.FilenameExtensionPart, null, filenameWithoutExtension.at(-1), ".", extension)), /*#__PURE__*/React__default.default.createElement(Cell_styles.FileDescription, null, description)));
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
exports.CellUI = CellUI;
|
|
31
|
+
//# sourceMappingURL=Cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.js","sources":["../../../../../../../src/components/File/ui/Cell/Cell.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\n\nimport {\n StyledCell,\n FilenameExtensionPart,\n FilenameWrapper,\n TruncatedFilenamePart,\n FileInfoWrapper,\n FileDescription,\n} from './Cell.styles';\n\ntype CellUIProps = {\n filenameWithoutExtension: string;\n extension: string;\n description?: string;\n size?: string;\n cellContentLeft?: ReactNode;\n cellContentRight?: ReactNode;\n className?: string;\n};\n\nexport const CellUI = forwardRef<HTMLDivElement, CellUIProps>(\n (\n {\n filenameWithoutExtension,\n extension,\n description,\n\n className,\n size,\n cellContentLeft,\n cellContentRight,\n },\n ref,\n ) => {\n return (\n <StyledCell\n ref={ref}\n stretching=\"filled\"\n size={size}\n contentLeft={cellContentLeft}\n contentRight={cellContentRight}\n className={className}\n >\n <FileInfoWrapper>\n <FilenameWrapper>\n <TruncatedFilenamePart>{filenameWithoutExtension.slice(0, -1)}</TruncatedFilenamePart>\n <FilenameExtensionPart>\n {filenameWithoutExtension.at(-1)}.{extension}\n </FilenameExtensionPart>\n </FilenameWrapper>\n <FileDescription>{description}</FileDescription>\n </FileInfoWrapper>\n </StyledCell>\n );\n },\n);\n"],"names":["CellUI","forwardRef","_ref","ref","filenameWithoutExtension","extension","description","className","size","cellContentLeft","cellContentRight","React","createElement","StyledCell","stretching","contentLeft","contentRight","FileInfoWrapper","FilenameWrapper","TruncatedFilenamePart","slice","FilenameExtensionPart","at","FileDescription"],"mappings":";;;;;;;;;;;AAqBO,IAAMA,MAAM,gBAAGC,gBAAU,CAC5B,UAAAC,IAAA,EAWIC,GAAG,EACF;AAAA,EAAA,IAVGC,wBAAwB,GAAAF,IAAA,CAAxBE,wBAAwB;IACxBC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,WAAW,GAAAJ,IAAA,CAAXI,WAAW;IAEXC,SAAS,GAAAL,IAAA,CAATK,SAAS;IACTC,IAAI,GAAAN,IAAA,CAAJM,IAAI;IACJC,eAAe,GAAAP,IAAA,CAAfO,eAAe;IACfC,gBAAgB,GAAAR,IAAA,CAAhBQ,gBAAgB,CAAA;AAIpB,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,sBAAU,EAAA;AACPV,IAAAA,GAAG,EAAEA,GAAI;AACTW,IAAAA,UAAU,EAAC,QAAQ;AACnBN,IAAAA,IAAI,EAAEA,IAAK;AACXO,IAAAA,WAAW,EAAEN,eAAgB;AAC7BO,IAAAA,YAAY,EAAEN,gBAAiB;AAC/BH,IAAAA,SAAS,EAAEA,SAAAA;GAEXI,eAAAA,sBAAA,CAAAC,aAAA,CAACK,2BAAe,EACZN,IAAAA,eAAAA,sBAAA,CAAAC,aAAA,CAACM,2BAAe,EACZP,IAAAA,eAAAA,sBAAA,CAAAC,aAAA,CAACO,iCAAqB,EAAEf,IAAAA,EAAAA,wBAAwB,CAACgB,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAyB,CAAC,eACtFT,sBAAA,CAAAC,aAAA,CAACS,iCAAqB,EACjBjB,IAAAA,EAAAA,wBAAwB,CAACkB,EAAE,CAAC,CAAC,CAAC,CAAC,EAAC,GAAC,EAACjB,SAChB,CACV,CAAC,eAClBM,sBAAA,CAAAC,aAAA,CAACW,2BAAe,EAAEjB,IAAAA,EAAAA,WAA6B,CAClC,CACT,CAAC,CAAA;AAErB,CACJ;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
require('./Cell.styles_1nus00g.css');
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var react = require('@linaria/react');
|
|
7
|
+
var common = require('../../../../engines/common.js');
|
|
8
|
+
var Cell$1 = require('../../../Cell/Cell.js');
|
|
9
|
+
|
|
10
|
+
var mergedConfig = /*#__PURE__*/common.mergeConfig(Cell$1.cellConfig);
|
|
11
|
+
var Cell = /*#__PURE__*/common.component(mergedConfig);
|
|
12
|
+
var _exp = function _exp() {
|
|
13
|
+
return Cell;
|
|
14
|
+
};
|
|
15
|
+
var StyledCell = /*#__PURE__*/react.styled(_exp())({
|
|
16
|
+
name: "StyledCell",
|
|
17
|
+
"class": "s3czsgs",
|
|
18
|
+
propsAsIs: true
|
|
19
|
+
});
|
|
20
|
+
var FileInfoWrapper = /*#__PURE__*/react.styled('div')({
|
|
21
|
+
name: "FileInfoWrapper",
|
|
22
|
+
"class": "f1g9th3m",
|
|
23
|
+
propsAsIs: false
|
|
24
|
+
});
|
|
25
|
+
var FilenameWrapper = /*#__PURE__*/react.styled('div')({
|
|
26
|
+
name: "FilenameWrapper",
|
|
27
|
+
"class": "f141hb5t",
|
|
28
|
+
propsAsIs: false
|
|
29
|
+
});
|
|
30
|
+
var TruncatedFilenamePart = /*#__PURE__*/react.styled('span')({
|
|
31
|
+
name: "TruncatedFilenamePart",
|
|
32
|
+
"class": "t15n7eg9",
|
|
33
|
+
propsAsIs: false
|
|
34
|
+
});
|
|
35
|
+
var FilenameExtensionPart = /*#__PURE__*/react.styled('span')({
|
|
36
|
+
name: "FilenameExtensionPart",
|
|
37
|
+
"class": "f14z9cf2",
|
|
38
|
+
propsAsIs: false
|
|
39
|
+
});
|
|
40
|
+
var FileDescription = /*#__PURE__*/react.styled('span')({
|
|
41
|
+
name: "FileDescription",
|
|
42
|
+
"class": "fv8e3ac",
|
|
43
|
+
propsAsIs: false
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
exports.FileDescription = FileDescription;
|
|
47
|
+
exports.FileInfoWrapper = FileInfoWrapper;
|
|
48
|
+
exports.FilenameExtensionPart = FilenameExtensionPart;
|
|
49
|
+
exports.FilenameWrapper = FilenameWrapper;
|
|
50
|
+
exports.StyledCell = StyledCell;
|
|
51
|
+
exports.TruncatedFilenamePart = TruncatedFilenamePart;
|
|
52
|
+
//# sourceMappingURL=Cell.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cell.styles.js","sources":["../../../../../../../src/components/File/ui/Cell/Cell.styles.tsx"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { component, mergeConfig } from 'src/engines';\nimport { cellConfig, cellTokens } from 'src/components/Cell';\nimport { applyEllipsis } from 'src/mixins';\nimport { CellRight } from 'src/components/Cell/Cell.styles';\n\nimport { classes, tokens } from '../../File.tokens';\n\nconst mergedConfig = mergeConfig(cellConfig);\nconst Cell = component(mergedConfig);\n\nexport const StyledCell = styled(Cell)`\n white-space: nowrap;\n height: var(${tokens.cellHeight});\n ${cellTokens.cellWidth}: 100%;\n\n ${cellTokens.cellGap}: var(${tokens.cellGap});\n\n &.${classes.fileActionLeft} {\n ${CellRight} {\n order: -1;\n }\n }\n`;\n\nexport const FileInfoWrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: var(${tokens.cellTextboxGap});\n`;\n\nexport const FilenameWrapper = styled.div`\n display: inline-grid;\n align-items: center;\n grid-template-columns: auto 1fr;\n min-width: 8ch;\n\n color: var(${tokens.cellTitleColor});\n\n font-family: var(${tokens.cellTitleFontFamily});\n font-size: var(${tokens.cellTitleFontSize});\n font-style: var(${tokens.cellTitleFontStyle});\n font-weight: var(${tokens.cellTitleFontWeight});\n letter-spacing: var(${tokens.cellTitleLetterSpacing});\n line-height: var(${tokens.cellTitleLineHeight});\n`;\n\nexport const TruncatedFilenamePart = styled.span`\n ${applyEllipsis()}\n`;\n\nexport const FilenameExtensionPart = styled.span``;\n\nexport const FileDescription = styled.span`\n color: var(${tokens.cellSubtitleColor});\n\n font-family: var(${tokens.cellSubtitleFontFamily});\n font-size: var(${tokens.cellSubtitleFontSize});\n font-style: var(${tokens.cellSubtitleFontStyle});\n font-weight: var(${tokens.cellSubtitleFontWeight});\n letter-spacing: var(${tokens.cellSubtitleLetterSpacing});\n line-height: var(${tokens.cellSubtitleLineHeight});\n\n ${applyEllipsis()}\n`;\n"],"names":["mergedConfig","mergeConfig","cellConfig","Cell","component","_exp","StyledCell","styled","name","class","propsAsIs","FileInfoWrapper","FilenameWrapper","TruncatedFilenamePart","FilenameExtensionPart","FileDescription"],"mappings":";;;;;;;;AAQA,IAAMA,YAAY,gBAAGC,kBAAW,CAACC,iBAAU,CAAC,CAAA;AAC5C,IAAMC,IAAI,gBAAGC,gBAAS,CAACJ,YAAY,CAAC,CAAA;AAAC,IAAAK,IAAA,GARnBA,SAQmBA,IAAAA,GAAA;AAAA,EAAA,OAEJF,IAAI,CAAA;AAAA,CAAA,CAAA;AAA9B,IAAMG,UAAU,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,YAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAY/B,EAAA;AAEM,IAAMC,eAAe,gBAAGJ,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAIpC,EAAA;AAEM,IAAME,eAAe,gBAAGL,YAAM,CAAA,KAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAcpC,EAAA;AAEM,IAAMG,qBAAqB,gBAAGN,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAE1C,EAAA;AAEM,IAAMI,qBAAqB,gBAAGP,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,uBAAA;AAAAC,EAAAA,OAAAA,EAAA,UAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAAO,EAAA;AAE3C,IAAMK,eAAe,gBAAGR,YAAM,CAAA,MAAA,CAAA,CAAA;AAAAC,EAAAA,IAAA,EAAA,iBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,KAAA;AAAA,CAWpC;;;;;;;;;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.s3czsgs{white-space:nowrap;height:var(--plasma-file-cell-height);--plasma-cell-width:100%;--plasma-cell-gap:var(--plasma-file-cell-gap);}.s3czsgs.file-action-left .c1spqh22{-webkit-order:-1;-ms-flex-order:-1;order:-1;}
|
|
2
|
+
.f1g9th3m{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:var(--plasma-file-cell-textbox-gap);}
|
|
3
|
+
.f141hb5t{display:inline-grid;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;grid-template-columns:auto 1fr;min-width:8ch;color:var(--plasma-file-cell-title-color);font-family:var(--plasma-file-cell-title-font-family);font-size:var(--plasma-file-cell-title-font-size);font-style:var(--plasma-file-cell-title-font-style);font-weight:var(--plasma-file-cell-title-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-title-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-title-letter-spacing);letter-spacing:var(--plasma-file-cell-title-letter-spacing);line-height:var(--plasma-file-cell-title-line-height);}
|
|
4
|
+
.t15n7eg9{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
5
|
+
|
|
6
|
+
.fv8e3ac{color:var(--plasma-file-cell-subtitle-color);font-family:var(--plasma-file-cell-subtitle-font-family);font-size:var(--plasma-file-cell-subtitle-font-size);font-style:var(--plasma-file-cell-subtitle-font-style);font-weight:var(--plasma-file-cell-subtitle-font-weight);-webkit-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-moz-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);-ms-letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);letter-spacing:var(--plasma-file-cell-subtitle-letter-spacing);line-height:var(--plasma-file-cell-subtitle-line-height);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require('./EmbedIconButton.styles_15pej3s.css');
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var react = require('@linaria/react');
|
|
7
|
+
var common = require('../../../../engines/common.js');
|
|
8
|
+
var EmbedIconButton$1 = require('../../../EmbedIconButton/EmbedIconButton.js');
|
|
9
|
+
|
|
10
|
+
var mergedConfig = /*#__PURE__*/common.mergeConfig(EmbedIconButton$1.embedIconButtonConfig);
|
|
11
|
+
var EmbedIconButton = /*#__PURE__*/common.component(mergedConfig);
|
|
12
|
+
var _exp = function _exp() {
|
|
13
|
+
return EmbedIconButton;
|
|
14
|
+
};
|
|
15
|
+
var EmbedIconButtonUI = /*#__PURE__*/react.styled(_exp())({
|
|
16
|
+
name: "EmbedIconButtonUI",
|
|
17
|
+
"class": "e3v51gd",
|
|
18
|
+
propsAsIs: true
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports.EmbedIconButtonUI = EmbedIconButtonUI;
|
|
22
|
+
//# sourceMappingURL=EmbedIconButton.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbedIconButton.styles.js","sources":["../../../../../../../src/components/File/ui/EmbedIconButton/EmbedIconButton.styles.ts"],"sourcesContent":["import { styled } from '@linaria/react';\nimport { component, mergeConfig } from 'src/engines';\nimport { embedIconButtonConfig, embedIconButtonTokens } from 'src/components/EmbedIconButton';\n\nimport { tokens } from '../../File.tokens';\n\nconst mergedConfig = mergeConfig(embedIconButtonConfig);\nconst EmbedIconButton = component(mergedConfig);\n\nexport const EmbedIconButtonUI = styled(EmbedIconButton)`\n ${embedIconButtonTokens.embedIconButtonColor}: var(${tokens.embedIconButtonColor});\n ${embedIconButtonTokens.embedIconButtonColorHover}: var(${tokens.embedIconButtonColorHover});\n ${embedIconButtonTokens.embedIconButtonColorActive}: var(${tokens.embedIconButtonColorActive});\n ${embedIconButtonTokens.embedIconButtonHeight}: var(${tokens.embedIconButtonHeight});\n ${embedIconButtonTokens.embedIconButtonWidth}: var(${tokens.embedIconButtonWidth});\n ${embedIconButtonTokens.embedIconButtonPadding}: var(${tokens.embedIconButtonPadding});\n ${embedIconButtonTokens.embedIconButtonRadius}: var(${tokens.embedIconButtonRadius});\n ${embedIconButtonTokens.embedIconButtonFocusColor}: var(${tokens.embedIconButtonFocusColor});\n`;\n"],"names":["mergedConfig","mergeConfig","embedIconButtonConfig","EmbedIconButton","component","_exp","EmbedIconButtonUI","styled","name","class","propsAsIs"],"mappings":";;;;;;;;AAMA,IAAMA,YAAY,gBAAGC,kBAAW,CAACC,uCAAqB,CAAC,CAAA;AACvD,IAAMC,eAAe,gBAAGC,gBAAS,CAACJ,YAAY,CAAC,CAAA;AAAC,IAAAK,IAAA,GAN9BA,SAM8BA,IAAAA,GAAA;AAAA,EAAA,OAERF,eAAe,CAAA;AAAA,CAAA,CAAA;AAAhD,IAAMG,iBAAiB,gBAAGC,YAAM,CAAAF,IAAA,EAAA,CAAA,CAAA;AAAAG,EAAAA,IAAA,EAAA,mBAAA;AAAAC,EAAAA,OAAAA,EAAA,SAAA;AAAAC,EAAAA,SAAA,EAAA,IAAA;AAAA,CAStC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.e3v51gd{--plasma-embed-icon-button-color:var(--plasma-file-embed-icon-button-color);--plasma-embed-icon-button-color-hover:var(--plasma-file-embed-icon-button-color-hover);--plasma-embed-icon-button-color-active:var(--plasma-file-embed-icon-button-color-active);--plasma-embed-icon-button-height:var(--plasma-file-embed-icon-button-height);--plasma-embed-icon-button-width:var(--plasma-file-embed-icon-button-width);--plasma-embed-icon-button-padding:var(--plasma-file-embed-icon-button-padding);--plasma-embed-icon-button-radius:var(--plasma-file-embed-icon-button-radius);--plasma-embed-icon-button-focus-color:var(--plasma-file-embed-icon-button-focus-color);}
|