@v-miniapp/ui-react 1.0.41 → 1.0.47
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/README.md +1 -1
- package/dist/components/app/types/app.d.ts +10 -0
- package/dist/components/app/utils/data-theme.d.ts +1 -2
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/external/index.js +2530 -2519
- package/dist/index.js +2308 -2297
- package/dist-storybook/assets/ANIMATION-DLCDVwPI.js +99 -0
- package/dist-storybook/assets/APP_FRAMEWORK-B9Mrudgl.js +197 -0
- package/dist-storybook/assets/BOTTOM_TAB_BAR-Bgfy-nnv.js +175 -0
- package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-G_i_6aho.js +250 -0
- package/dist-storybook/assets/Color-AVL7NMMY-OD8SQvXt.js +1 -0
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-D8kbgtPd.js +2 -0
- package/dist-storybook/assets/GETTING_STARTED-Bf6ENjZo.js +77 -0
- package/dist-storybook/assets/INFINITE_SCROLL-O36i5W8i.js +111 -0
- package/dist-storybook/assets/KEEP_ALIVE-CicDtVw6.js +126 -0
- package/dist-storybook/assets/LOCALE-D_43J3RD.js +465 -0
- package/dist-storybook/assets/MIGRATION_GUIDE-Dn2gFk5v.js +449 -0
- package/dist-storybook/assets/MOBILE_BEHAVIOURS-D5jOxNiz.js +177 -0
- package/dist-storybook/assets/PAGE_LAYOUT-C0sW9iZo.js +192 -0
- package/dist-storybook/assets/ROUTING_NAVIGATION-Bpj_mu5r.js +335 -0
- package/dist-storybook/assets/TAILWIND_INTEGRATION-CVrohRXO.js +87 -0
- package/dist-storybook/assets/THEME_MODE-Sc8cgznR.js +111 -0
- package/dist-storybook/assets/_setToString-CjYxL0rS.js +1 -0
- package/dist-storybook/assets/alert-abKmNYys.js +1 -0
- package/dist-storybook/assets/alert.stories-XyvS4WTm.js +110 -0
- package/dist-storybook/assets/avatar-B-jvPnzm.js +1 -0
- package/dist-storybook/assets/avatar.stories-glTjw5Kd.js +136 -0
- package/dist-storybook/assets/axe-B8nlqekz.js +20 -0
- package/dist-storybook/assets/badge-Cc9u7jBX.js +1 -0
- package/dist-storybook/assets/badge.stories-CeNmmdtv.js +262 -0
- package/dist-storybook/assets/blocks-CpOj9FQ_.js +1243 -0
- package/dist-storybook/assets/bottom-tab-bar-BsPd0FD7.js +115 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-BG1ee2eN.js +186 -0
- package/dist-storybook/assets/button-GtWXUngt.js +1 -0
- package/dist-storybook/assets/button.stories-3d_T0h_Z.js +287 -0
- package/dist-storybook/assets/calendar-CJ5_NxYx.js +1 -0
- package/dist-storybook/assets/calendar.stories-DEleEKoa.js +189 -0
- package/dist-storybook/assets/carousel-sbzGq2WF.js +37 -0
- package/dist-storybook/assets/carousel.stories-DY9nDa3M.js +217 -0
- package/dist-storybook/assets/checkbox-CMpJJxvm.js +1 -0
- package/dist-storybook/assets/checkbox.stories-BY8W9TRC.js +201 -0
- package/dist-storybook/assets/chip-zY6gJxDk.js +247 -0
- package/dist-storybook/assets/chip.stories-CXh30Tdq.js +442 -0
- package/dist-storybook/assets/classname-DoNrELT0.js +1 -0
- package/dist-storybook/assets/colors-_6nFGM3e.js +1 -0
- package/dist-storybook/assets/date-Ci5dIit0.js +1 -0
- package/dist-storybook/assets/date-field.stories-CerGwXZy.js +129 -0
- package/dist-storybook/assets/date-picker-BCIW_1-h.js +1 -0
- package/dist-storybook/assets/date-picker.stories-DUaL7sft.js +123 -0
- package/dist-storybook/assets/default-error-BcnD8fFO.png +0 -0
- package/dist-storybook/assets/dialog.stories-BtQMDA-1.js +212 -0
- package/dist-storybook/assets/dropdown.stories-DF69os0J.js +200 -0
- package/dist-storybook/assets/embla-carousel-react.esm-CCQjHA-d.js +1 -0
- package/dist-storybook/assets/en-Cs9O0XWn.js +15 -0
- package/dist-storybook/assets/icon-TJ3FHxUI.js +1 -0
- package/dist-storybook/assets/icon.stories-Ch36FMIn.js +365 -0
- package/dist-storybook/assets/iframe-CLEfhyJc.js +1071 -0
- package/dist-storybook/assets/iframe-yMKl6hJA.css +1 -0
- package/dist-storybook/assets/image-D6Yo4ht9.js +9 -0
- package/dist-storybook/assets/image.stories-CJPB43ys.js +255 -0
- package/dist-storybook/assets/index-7xlKHfV2.js +1 -0
- package/dist-storybook/assets/index-B-Ksafg0.js +1 -0
- package/dist-storybook/assets/index-CaMbLGUB.js +1 -0
- package/dist-storybook/assets/index-DRIh_SUo.js +1 -0
- package/dist-storybook/assets/input-wrapper-D_9hAdHZ.js +1 -0
- package/dist-storybook/assets/label-fI1oWVKU.js +27 -0
- package/dist-storybook/assets/label.stories-C3xDUHd-.js +138 -0
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +14 -0
- package/dist-storybook/assets/navigation-bar-CiGSH7u8.js +79 -0
- package/dist-storybook/assets/navigation-bar.stories-BvGp7uJf.js +73 -0
- package/dist-storybook/assets/number-field-DNj4myBV.js +1 -0
- package/dist-storybook/assets/number-field.stories-B_Bj8RqE.js +167 -0
- package/dist-storybook/assets/omit-CStFhbPt.js +1 -0
- package/dist-storybook/assets/option-item-BloohEvW.js +1 -0
- package/dist-storybook/assets/option-item.stories-BjtolfPz.js +66 -0
- package/dist-storybook/assets/pagination-Dcazh6R_.js +1 -0
- package/dist-storybook/assets/pagination.stories-CrGsYeRw.js +91 -0
- package/dist-storybook/assets/pick-DbIUGM9R.js +1 -0
- package/dist-storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/dist-storybook/assets/radio-t2E8E0Oc.js +1 -0
- package/dist-storybook/assets/radio.stories-BEG-zTwI.js +183 -0
- package/dist-storybook/assets/rating-DsULci27.js +1 -0
- package/dist-storybook/assets/rating.stories-Dwk8Ov3Q.js +117 -0
- package/dist-storybook/assets/react-18-4mLDkQmf.js +9 -0
- package/dist-storybook/assets/react-mAVd1wAc.js +1 -0
- package/dist-storybook/assets/search-field-CuiHMy7j.js +1 -0
- package/dist-storybook/assets/search-field.stories-BnsT36yY.js +79 -0
- package/dist-storybook/assets/section-content-pkGNuEs6.js +1 -0
- package/dist-storybook/assets/section.stories-B5IhLkbG.js +69 -0
- package/dist-storybook/assets/sheet.stories-COzxyiqj.js +152 -0
- package/dist-storybook/assets/skeleton-Dn8rwbgX.js +1 -0
- package/dist-storybook/assets/skeleton.stories-B71MlMyi.js +139 -0
- package/dist-storybook/assets/store-D2RudmNr.js +18 -0
- package/dist-storybook/assets/store-DxAqU1JB.js +1 -0
- package/dist-storybook/assets/switch-BziC1t_8.js +1 -0
- package/dist-storybook/assets/switch.stories-DMBBwZef.js +250 -0
- package/dist-storybook/assets/tab-bar-DZ3oOU50.js +31 -0
- package/dist-storybook/assets/tab-bar.stories-Bp9w6nc3.js +136 -0
- package/dist-storybook/assets/text-area-CAmJ2yms.js +1 -0
- package/dist-storybook/assets/text-area.stories-BZ3HXtij.js +87 -0
- package/dist-storybook/assets/text-field-CjrgfYOZ.js +1 -0
- package/dist-storybook/assets/text-field.stories-vSXYvs0U.js +92 -0
- package/dist-storybook/assets/toast-provider-B9k1NBG6.js +9 -0
- package/dist-storybook/assets/toast.stories-DQKbk7dO.js +201 -0
- package/dist-storybook/assets/tooltip-VnA8Hy0S.js +1 -0
- package/dist-storybook/assets/tooltip.stories-wuthZ3Sv.js +153 -0
- package/dist-storybook/assets/typography-DoV67nnS.js +1 -0
- package/dist-storybook/assets/typography.stories-DD9HLY16.js +202 -0
- package/dist-storybook/assets/uploader.stories-sModULvT.js +65 -0
- package/dist-storybook/assets/use-app-pause-BQYQ2_kc.js +29 -0
- package/dist-storybook/assets/use-app-resume-BHDCAORn.js +29 -0
- package/dist-storybook/assets/use-custom-icon-event-BCGSFwaE.js +29 -0
- package/dist-storybook/assets/use-did-hide-Cosc0Bts.js +48 -0
- package/dist-storybook/assets/use-did-show-CTWe5NYk.js +49 -0
- package/dist-storybook/assets/use-histories-CAcE6nVz.js +50 -0
- package/dist-storybook/assets/use-history-FuEbPpap.js +67 -0
- package/dist-storybook/assets/use-location-CdUC1tic.js +56 -0
- package/dist-storybook/assets/use-navigate-DP9paY1K.js +84 -0
- package/dist-storybook/assets/use-navigation-type-BWVxMUtZ.js +44 -0
- package/dist-storybook/assets/use-page-config-5u8OF-8L.js +48 -0
- package/dist-storybook/assets/use-page-scroll-nPQcBn5B.js +69 -0
- package/dist-storybook/assets/use-page-state-CULl52gw.js +79 -0
- package/dist-storybook/assets/use-settings-changed-2GP5ZsJS.js +29 -0
- package/dist-storybook/assets/v-mini-icon-Dn1BmJzb.woff2 +0 -0
- package/dist-storybook/assets/visibility-sensor-huP-8j4n.js +1 -0
- package/dist-storybook/iframe.html +670 -0
- package/dist-storybook/index.html +132 -0
- package/dist-storybook/index.json +1 -0
- package/dist-storybook/project.json +1 -0
- package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +5 -0
- package/dist-storybook/sb-addons/docs-1/manager-bundle.js +151 -0
- package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +3 -0
- package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/dist-storybook/sb-manager/globals-module-info.js +799 -0
- package/dist-storybook/sb-manager/globals-runtime.js +69791 -0
- package/dist-storybook/sb-manager/globals.js +34 -0
- package/dist-storybook/sb-manager/runtime.js +13198 -0
- package/dist-storybook/stories-data.json +374 -0
- package/dist-storybook/vite-inject-mocker-entry.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import{j as e}from"./iframe-CLEfhyJc.js";import{T as y,S as g,M as d,P as f,a as h}from"./blocks-CpOj9FQ_.js";import{i as u,I as o}from"./icon-TJ3FHxUI.js";import{t as s}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CaMbLGUB.js";import"./colors-_6nFGM3e.js";import"./classname-DoNrELT0.js";const v=()=>{const x=`
|
|
2
|
+
## ${s("common.table.title")}
|
|
3
|
+
|
|
4
|
+
| ${s("common.table.name")} | ${s("common.table.type")} | ${s("common.table.required")} | ${s("common.table.description")} |
|
|
5
|
+
| :--- | :--- | :--- | :--- |
|
|
6
|
+
| \`name\` | \`IIconName\` | ${s("common.table.yes")}* | ${s("components.icon.nameDescription")} |
|
|
7
|
+
| \`type\` | \`'outline' | 'fill'\` | ${s("common.table.no")} | ${s("components.icon.typeDescription")} |
|
|
8
|
+
| \`size\` | \`number | string\` | ${s("common.table.no")} | ${s("components.icon.sizeDescription")} |
|
|
9
|
+
| \`color\` | \`IColor\` | ${s("common.table.no")} | ${s("components.icon.colorDescription")} |
|
|
10
|
+
| \`animation\` | \`'spin' | 'ping' | 'pulse' | 'bounce'\` | ${s("common.table.no")} | ${s("components.icon.animationDescription")} |
|
|
11
|
+
| \`children\` | \`ReactNode\` | ${s("common.table.no")} | ${s("components.icon.childrenDescription")} |
|
|
12
|
+
| \`className\` | \`string\` | ${s("common.table.no")} | ${s("components.icon.classNameDescription")} |
|
|
13
|
+
| \`style\` | \`React.CSSProperties\` | ${s("common.table.no")} | ${s("components.icon.styleDescription")} |
|
|
14
|
+
| \`...props\` | \`Omit<ComponentProps<'svg'>, 'name' | 'type' | 'children'>\` | ${s("common.table.no")} | ${s("components.icon.propsDescription")} |
|
|
15
|
+
`;return e.jsxs(e.Fragment,{children:[e.jsx(y,{}),e.jsx(g,{}),e.jsx(d,{children:s("components.icon.description")}),e.jsx(f,{}),e.jsx(d,{children:x}),e.jsx(h,{})]})},$={title:"Components/Icon",component:o,parameters:{layout:"padded",docs:{page:v}},tags:["autodocs"],argTypes:{name:{control:"select",description:s("components.icon.argTypes.nameDescription"),table:{type:{summary:"IIconName"}},options:u},type:{control:"select",options:["outline","fill"],description:s("components.icon.argTypes.typeDescription"),table:{type:{summary:'"outline" | "fill"'},defaultValue:{summary:"outline"}}},size:{control:{type:"number",min:8,max:128,step:4},description:s("components.icon.argTypes.sizeDescription"),table:{type:{summary:"number | string"}}},color:{control:"text",description:s("components.icon.argTypes.colorDescription"),table:{type:{summary:"IColor"}}},animation:{control:"select",options:["spin","ping","pulse","bounce"],description:s("components.icon.argTypes.animationDescription"),table:{type:{summary:"IIconAnimation"}}},children:{control:!1,description:s("components.icon.argTypes.childrenDescription"),table:{type:{summary:"ReactNode"}}},className:{control:"text",description:s("components.icon.argTypes.classNameDescription"),table:{type:{summary:"string"}}},style:{control:"object",description:s("components.icon.argTypes.styleDescription"),table:{type:{summary:"React.CSSProperties"}}}}},n={storyName:s("components.icon.stories.default.storyName"),args:{name:"placeholder"}},i={storyName:s("components.icon.stories.iconTypes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"outline",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.outline")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",type:"fill",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.iconTypes.fill")})]})]})},t={storyName:s("components.icon.stories.sizes.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:16}),e.jsx("span",{style:{fontSize:"12px"},children:"16px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx("span",{style:{fontSize:"12px"},children:"24px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:"32px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:48}),e.jsx("span",{style:{fontSize:"12px"},children:"48px"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"2rem"}),e.jsx("span",{style:{fontSize:"12px"},children:"2rem"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:"3em"}),e.jsx("span",{style:{fontSize:"12px"},children:"3em"})]})]})},l={storyName:s("components.icon.stories.colors.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.themeColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-object-primary"}),e.jsx("span",{style:{fontSize:"12px"},children:"Primary"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-positive"}),e.jsx("span",{style:{fontSize:"12px"},children:"Positive"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"alias-support-negative"}),e.jsx("span",{style:{fontSize:"12px"},children:"Negative"})]})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:s("components.icon.stories.colors.cssColors")}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#FF0000"}),e.jsx("span",{style:{fontSize:"12px"},children:"#FF0000"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"rgb(0, 102, 204)"}),e.jsx("span",{style:{fontSize:"12px"},children:"rgb(0, 102, 204)"})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,color:"#00AA00"}),e.jsx("span",{style:{fontSize:"12px"},children:"#00AA00"})]})]})]})]})},a={storyName:s("components.icon.stories.animations.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"24px",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.spin")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"ping",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.ping")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"pulse",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.pulse")})]}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",animation:"bounce",size:32}),e.jsx("span",{style:{fontSize:"12px"},children:s("components.icon.stories.animations.bounce")})]})]})},r={storyName:s("components.icon.stories.customSVGIcon.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2L2 7v10l10 5 10-5V7l-10-5z"})})}),e.jsx(o,{size:32,color:"#4a90e2",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("circle",{cx:"12",cy:"12",r:"10"})})}),e.jsx(o,{size:48,color:"alias-object-primary",children:e.jsx("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor",children:e.jsx("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})})})]})},c={storyName:s("components.icon.stories.withSVGProps.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:32,title:"Information",titleId:"info-title",desc:"This is an information icon"}),e.jsx(o,{name:"placeholder",type:"fill",size:32,color:"alias-object-primary",title:"Custom Icon"})]})},p={storyName:s("components.icon.stories.completeExample.storyName"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Common Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"placeholder",size:24}),e.jsx(o,{name:"placeholder",type:"fill",size:24,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",size:24,color:"alias-support-negative"})]})]}),e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:"Animated Icons"}),e.jsxs("div",{style:{display:"flex",gap:"16px",alignItems:"center"},children:[e.jsx(o,{name:"loader",animation:"spin",size:32,color:"alias-object-primary"}),e.jsx(o,{name:"placeholder",animation:"ping",size:32,color:"alias-support-positive"}),e.jsx(o,{name:"placeholder",animation:"pulse",size:32,color:"alias-support-negative"})]})]})]})},m={storyName:s("components.icon.stories.interactive.storyName"),args:{name:"placeholder",type:"outline",size:24}};n.parameters={...n.parameters,docs:{...n.parameters?.docs,source:{originalSource:`{
|
|
16
|
+
storyName: t('components.icon.stories.default.storyName'),
|
|
17
|
+
args: {
|
|
18
|
+
name: 'placeholder'
|
|
19
|
+
}
|
|
20
|
+
}`,...n.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
|
|
21
|
+
storyName: t('components.icon.stories.iconTypes.storyName'),
|
|
22
|
+
render: () => <div style={{
|
|
23
|
+
display: 'flex',
|
|
24
|
+
gap: '24px',
|
|
25
|
+
alignItems: 'center'
|
|
26
|
+
}}>
|
|
27
|
+
<div style={{
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'column',
|
|
30
|
+
gap: '8px',
|
|
31
|
+
alignItems: 'center'
|
|
32
|
+
}}>
|
|
33
|
+
<Icon name="placeholder" type="outline" size={32} />
|
|
34
|
+
<span style={{
|
|
35
|
+
fontSize: '12px'
|
|
36
|
+
}}>
|
|
37
|
+
{t('components.icon.stories.iconTypes.outline')}
|
|
38
|
+
</span>
|
|
39
|
+
</div>
|
|
40
|
+
<div style={{
|
|
41
|
+
display: 'flex',
|
|
42
|
+
flexDirection: 'column',
|
|
43
|
+
gap: '8px',
|
|
44
|
+
alignItems: 'center'
|
|
45
|
+
}}>
|
|
46
|
+
<Icon name="placeholder" type="fill" size={32} />
|
|
47
|
+
<span style={{
|
|
48
|
+
fontSize: '12px'
|
|
49
|
+
}}>
|
|
50
|
+
{t('components.icon.stories.iconTypes.fill')}
|
|
51
|
+
</span>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
}`,...i.parameters?.docs?.source}}};t.parameters={...t.parameters,docs:{...t.parameters?.docs,source:{originalSource:`{
|
|
55
|
+
storyName: t('components.icon.stories.sizes.storyName'),
|
|
56
|
+
render: () => <div style={{
|
|
57
|
+
display: 'flex',
|
|
58
|
+
gap: '16px',
|
|
59
|
+
alignItems: 'center'
|
|
60
|
+
}}>
|
|
61
|
+
<div style={{
|
|
62
|
+
display: 'flex',
|
|
63
|
+
flexDirection: 'column',
|
|
64
|
+
gap: '8px',
|
|
65
|
+
alignItems: 'center'
|
|
66
|
+
}}>
|
|
67
|
+
<Icon name="placeholder" size={16} />
|
|
68
|
+
<span style={{
|
|
69
|
+
fontSize: '12px'
|
|
70
|
+
}}>16px</span>
|
|
71
|
+
</div>
|
|
72
|
+
<div style={{
|
|
73
|
+
display: 'flex',
|
|
74
|
+
flexDirection: 'column',
|
|
75
|
+
gap: '8px',
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
}}>
|
|
78
|
+
<Icon name="placeholder" size={24} />
|
|
79
|
+
<span style={{
|
|
80
|
+
fontSize: '12px'
|
|
81
|
+
}}>24px</span>
|
|
82
|
+
</div>
|
|
83
|
+
<div style={{
|
|
84
|
+
display: 'flex',
|
|
85
|
+
flexDirection: 'column',
|
|
86
|
+
gap: '8px',
|
|
87
|
+
alignItems: 'center'
|
|
88
|
+
}}>
|
|
89
|
+
<Icon name="placeholder" size={32} />
|
|
90
|
+
<span style={{
|
|
91
|
+
fontSize: '12px'
|
|
92
|
+
}}>32px</span>
|
|
93
|
+
</div>
|
|
94
|
+
<div style={{
|
|
95
|
+
display: 'flex',
|
|
96
|
+
flexDirection: 'column',
|
|
97
|
+
gap: '8px',
|
|
98
|
+
alignItems: 'center'
|
|
99
|
+
}}>
|
|
100
|
+
<Icon name="placeholder" size={48} />
|
|
101
|
+
<span style={{
|
|
102
|
+
fontSize: '12px'
|
|
103
|
+
}}>48px</span>
|
|
104
|
+
</div>
|
|
105
|
+
<div style={{
|
|
106
|
+
display: 'flex',
|
|
107
|
+
flexDirection: 'column',
|
|
108
|
+
gap: '8px',
|
|
109
|
+
alignItems: 'center'
|
|
110
|
+
}}>
|
|
111
|
+
<Icon name="placeholder" size="2rem" />
|
|
112
|
+
<span style={{
|
|
113
|
+
fontSize: '12px'
|
|
114
|
+
}}>2rem</span>
|
|
115
|
+
</div>
|
|
116
|
+
<div style={{
|
|
117
|
+
display: 'flex',
|
|
118
|
+
flexDirection: 'column',
|
|
119
|
+
gap: '8px',
|
|
120
|
+
alignItems: 'center'
|
|
121
|
+
}}>
|
|
122
|
+
<Icon name="placeholder" size="3em" />
|
|
123
|
+
<span style={{
|
|
124
|
+
fontSize: '12px'
|
|
125
|
+
}}>3em</span>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
}`,...t.parameters?.docs?.source}}};l.parameters={...l.parameters,docs:{...l.parameters?.docs,source:{originalSource:`{
|
|
129
|
+
storyName: t('components.icon.stories.colors.storyName'),
|
|
130
|
+
render: () => <div style={{
|
|
131
|
+
display: 'flex',
|
|
132
|
+
flexDirection: 'column',
|
|
133
|
+
gap: '16px'
|
|
134
|
+
}}>
|
|
135
|
+
<div>
|
|
136
|
+
<h3 style={{
|
|
137
|
+
marginBottom: '12px'
|
|
138
|
+
}}>
|
|
139
|
+
{t('components.icon.stories.colors.themeColors')}
|
|
140
|
+
</h3>
|
|
141
|
+
<div style={{
|
|
142
|
+
display: 'flex',
|
|
143
|
+
gap: '16px',
|
|
144
|
+
alignItems: 'center'
|
|
145
|
+
}}>
|
|
146
|
+
<div style={{
|
|
147
|
+
display: 'flex',
|
|
148
|
+
flexDirection: 'column',
|
|
149
|
+
gap: '8px',
|
|
150
|
+
alignItems: 'center'
|
|
151
|
+
}}>
|
|
152
|
+
<Icon name="placeholder" size={32} color="alias-object-primary" />
|
|
153
|
+
<span style={{
|
|
154
|
+
fontSize: '12px'
|
|
155
|
+
}}>Primary</span>
|
|
156
|
+
</div>
|
|
157
|
+
<div style={{
|
|
158
|
+
display: 'flex',
|
|
159
|
+
flexDirection: 'column',
|
|
160
|
+
gap: '8px',
|
|
161
|
+
alignItems: 'center'
|
|
162
|
+
}}>
|
|
163
|
+
<Icon name="placeholder" size={32} color="alias-support-positive" />
|
|
164
|
+
<span style={{
|
|
165
|
+
fontSize: '12px'
|
|
166
|
+
}}>Positive</span>
|
|
167
|
+
</div>
|
|
168
|
+
<div style={{
|
|
169
|
+
display: 'flex',
|
|
170
|
+
flexDirection: 'column',
|
|
171
|
+
gap: '8px',
|
|
172
|
+
alignItems: 'center'
|
|
173
|
+
}}>
|
|
174
|
+
<Icon name="placeholder" size={32} color="alias-support-negative" />
|
|
175
|
+
<span style={{
|
|
176
|
+
fontSize: '12px'
|
|
177
|
+
}}>Negative</span>
|
|
178
|
+
</div>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
<div>
|
|
182
|
+
<h3 style={{
|
|
183
|
+
marginBottom: '12px'
|
|
184
|
+
}}>
|
|
185
|
+
{t('components.icon.stories.colors.cssColors')}
|
|
186
|
+
</h3>
|
|
187
|
+
<div style={{
|
|
188
|
+
display: 'flex',
|
|
189
|
+
gap: '16px',
|
|
190
|
+
alignItems: 'center'
|
|
191
|
+
}}>
|
|
192
|
+
<div style={{
|
|
193
|
+
display: 'flex',
|
|
194
|
+
flexDirection: 'column',
|
|
195
|
+
gap: '8px',
|
|
196
|
+
alignItems: 'center'
|
|
197
|
+
}}>
|
|
198
|
+
<Icon name="placeholder" size={32} color="#FF0000" />
|
|
199
|
+
<span style={{
|
|
200
|
+
fontSize: '12px'
|
|
201
|
+
}}>#FF0000</span>
|
|
202
|
+
</div>
|
|
203
|
+
<div style={{
|
|
204
|
+
display: 'flex',
|
|
205
|
+
flexDirection: 'column',
|
|
206
|
+
gap: '8px',
|
|
207
|
+
alignItems: 'center'
|
|
208
|
+
}}>
|
|
209
|
+
<Icon name="placeholder" size={32} color="rgb(0, 102, 204)" />
|
|
210
|
+
<span style={{
|
|
211
|
+
fontSize: '12px'
|
|
212
|
+
}}>rgb(0, 102, 204)</span>
|
|
213
|
+
</div>
|
|
214
|
+
<div style={{
|
|
215
|
+
display: 'flex',
|
|
216
|
+
flexDirection: 'column',
|
|
217
|
+
gap: '8px',
|
|
218
|
+
alignItems: 'center'
|
|
219
|
+
}}>
|
|
220
|
+
<Icon name="placeholder" size={32} color="#00AA00" />
|
|
221
|
+
<span style={{
|
|
222
|
+
fontSize: '12px'
|
|
223
|
+
}}>#00AA00</span>
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
}`,...l.parameters?.docs?.source}}};a.parameters={...a.parameters,docs:{...a.parameters?.docs,source:{originalSource:`{
|
|
229
|
+
storyName: t('components.icon.stories.animations.storyName'),
|
|
230
|
+
render: () => <div style={{
|
|
231
|
+
display: 'flex',
|
|
232
|
+
gap: '24px',
|
|
233
|
+
alignItems: 'center'
|
|
234
|
+
}}>
|
|
235
|
+
<div style={{
|
|
236
|
+
display: 'flex',
|
|
237
|
+
flexDirection: 'column',
|
|
238
|
+
gap: '8px',
|
|
239
|
+
alignItems: 'center'
|
|
240
|
+
}}>
|
|
241
|
+
<Icon name="loader" animation="spin" size={32} />
|
|
242
|
+
<span style={{
|
|
243
|
+
fontSize: '12px'
|
|
244
|
+
}}>
|
|
245
|
+
{t('components.icon.stories.animations.spin')}
|
|
246
|
+
</span>
|
|
247
|
+
</div>
|
|
248
|
+
<div style={{
|
|
249
|
+
display: 'flex',
|
|
250
|
+
flexDirection: 'column',
|
|
251
|
+
gap: '8px',
|
|
252
|
+
alignItems: 'center'
|
|
253
|
+
}}>
|
|
254
|
+
<Icon name="placeholder" animation="ping" size={32} />
|
|
255
|
+
<span style={{
|
|
256
|
+
fontSize: '12px'
|
|
257
|
+
}}>
|
|
258
|
+
{t('components.icon.stories.animations.ping')}
|
|
259
|
+
</span>
|
|
260
|
+
</div>
|
|
261
|
+
<div style={{
|
|
262
|
+
display: 'flex',
|
|
263
|
+
flexDirection: 'column',
|
|
264
|
+
gap: '8px',
|
|
265
|
+
alignItems: 'center'
|
|
266
|
+
}}>
|
|
267
|
+
<Icon name="placeholder" animation="pulse" size={32} />
|
|
268
|
+
<span style={{
|
|
269
|
+
fontSize: '12px'
|
|
270
|
+
}}>
|
|
271
|
+
{t('components.icon.stories.animations.pulse')}
|
|
272
|
+
</span>
|
|
273
|
+
</div>
|
|
274
|
+
<div style={{
|
|
275
|
+
display: 'flex',
|
|
276
|
+
flexDirection: 'column',
|
|
277
|
+
gap: '8px',
|
|
278
|
+
alignItems: 'center'
|
|
279
|
+
}}>
|
|
280
|
+
<Icon name="placeholder" animation="bounce" size={32} />
|
|
281
|
+
<span style={{
|
|
282
|
+
fontSize: '12px'
|
|
283
|
+
}}>
|
|
284
|
+
{t('components.icon.stories.animations.bounce')}
|
|
285
|
+
</span>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
}`,...a.parameters?.docs?.source}}};r.parameters={...r.parameters,docs:{...r.parameters?.docs,source:{originalSource:`{
|
|
289
|
+
storyName: t('components.icon.stories.customSVGIcon.storyName'),
|
|
290
|
+
render: () => <div style={{
|
|
291
|
+
display: 'flex',
|
|
292
|
+
gap: '16px',
|
|
293
|
+
alignItems: 'center'
|
|
294
|
+
}}>
|
|
295
|
+
<Icon>
|
|
296
|
+
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
297
|
+
<path d="M12 2L2 7v10l10 5 10-5V7l-10-5z" />
|
|
298
|
+
</svg>
|
|
299
|
+
</Icon>
|
|
300
|
+
<Icon size={32} color="#4a90e2">
|
|
301
|
+
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
302
|
+
<circle cx="12" cy="12" r="10" />
|
|
303
|
+
</svg>
|
|
304
|
+
</Icon>
|
|
305
|
+
<Icon size={48} color="alias-object-primary">
|
|
306
|
+
<svg viewBox="0 0 24 24" width="24" height="24" fill="currentColor">
|
|
307
|
+
<path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" />
|
|
308
|
+
</svg>
|
|
309
|
+
</Icon>
|
|
310
|
+
</div>
|
|
311
|
+
}`,...r.parameters?.docs?.source}}};c.parameters={...c.parameters,docs:{...c.parameters?.docs,source:{originalSource:`{
|
|
312
|
+
storyName: t('components.icon.stories.withSVGProps.storyName'),
|
|
313
|
+
render: () => <div style={{
|
|
314
|
+
display: 'flex',
|
|
315
|
+
gap: '16px',
|
|
316
|
+
alignItems: 'center'
|
|
317
|
+
}}>
|
|
318
|
+
<Icon name="placeholder" size={32} title="Information" titleId="info-title" desc="This is an information icon" />
|
|
319
|
+
<Icon name="placeholder" type="fill" size={32} color="alias-object-primary" title="Custom Icon" />
|
|
320
|
+
</div>
|
|
321
|
+
}`,...c.parameters?.docs?.source}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
|
|
322
|
+
storyName: t('components.icon.stories.completeExample.storyName'),
|
|
323
|
+
render: () => <div style={{
|
|
324
|
+
display: 'flex',
|
|
325
|
+
flexDirection: 'column',
|
|
326
|
+
gap: '24px'
|
|
327
|
+
}}>
|
|
328
|
+
<div>
|
|
329
|
+
<h3 style={{
|
|
330
|
+
marginBottom: '12px'
|
|
331
|
+
}}>Common Icons</h3>
|
|
332
|
+
<div style={{
|
|
333
|
+
display: 'flex',
|
|
334
|
+
gap: '16px',
|
|
335
|
+
alignItems: 'center'
|
|
336
|
+
}}>
|
|
337
|
+
<Icon name="placeholder" size={24} />
|
|
338
|
+
<Icon name="placeholder" type="fill" size={24} color="alias-object-primary" />
|
|
339
|
+
<Icon name="placeholder" size={24} color="alias-support-positive" />
|
|
340
|
+
<Icon name="placeholder" size={24} color="alias-support-negative" />
|
|
341
|
+
</div>
|
|
342
|
+
</div>
|
|
343
|
+
<div>
|
|
344
|
+
<h3 style={{
|
|
345
|
+
marginBottom: '12px'
|
|
346
|
+
}}>Animated Icons</h3>
|
|
347
|
+
<div style={{
|
|
348
|
+
display: 'flex',
|
|
349
|
+
gap: '16px',
|
|
350
|
+
alignItems: 'center'
|
|
351
|
+
}}>
|
|
352
|
+
<Icon name="loader" animation="spin" size={32} color="alias-object-primary" />
|
|
353
|
+
<Icon name="placeholder" animation="ping" size={32} color="alias-support-positive" />
|
|
354
|
+
<Icon name="placeholder" animation="pulse" size={32} color="alias-support-negative" />
|
|
355
|
+
</div>
|
|
356
|
+
</div>
|
|
357
|
+
</div>
|
|
358
|
+
}`,...p.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
359
|
+
storyName: t('components.icon.stories.interactive.storyName'),
|
|
360
|
+
args: {
|
|
361
|
+
name: 'placeholder',
|
|
362
|
+
type: 'outline',
|
|
363
|
+
size: 24
|
|
364
|
+
}
|
|
365
|
+
}`,...m.parameters?.docs?.source}}};const T=["Default","IconTypes","Sizes","Colors","Animations","CustomSVGIcon","WithSVGProps","CompleteExample","Interactive"];export{a as Animations,l as Colors,p as CompleteExample,r as CustomSVGIcon,n as Default,i as IconTypes,m as Interactive,t as Sizes,c as WithSVGProps,T as __namedExportsOrder,$ as default};
|