@v-miniapp/ui-react 1.0.41 → 1.0.45
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/external/index.js +1993 -2004
- package/dist/index.js +1011 -1022
- package/dist-storybook/assets/ANIMATION-CUdn1GTK.js +99 -0
- package/dist-storybook/assets/APP_FRAMEWORK-ljbIOHYd.js +197 -0
- package/dist-storybook/assets/BOTTOM_TAB_BAR-DxCwCfBK.js +175 -0
- package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js +250 -0
- package/dist-storybook/assets/Color-AVL7NMMY-1_8XTICv.js +1 -0
- package/dist-storybook/assets/DARK_MODE-CoHseCDO.js +57 -0
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-BO86igwd.js +2 -0
- package/dist-storybook/assets/GETTING_STARTED-H_vVi5cv.js +77 -0
- package/dist-storybook/assets/INFINITE_SCROLL-BtM3uoX0.js +111 -0
- package/dist-storybook/assets/KEEP_ALIVE-CL2au0al.js +126 -0
- package/dist-storybook/assets/LOCALE-XTCey55y.js +465 -0
- package/dist-storybook/assets/MIGRATION_GUIDE-2LONslE4.js +449 -0
- package/dist-storybook/assets/MOBILE_BEHAVIOURS-DZ6alKTX.js +177 -0
- package/dist-storybook/assets/PAGE_LAYOUT-BuOpN-1Y.js +192 -0
- package/dist-storybook/assets/ROUTING_NAVIGATION-BCPHXNto.js +335 -0
- package/dist-storybook/assets/TAILWIND_INTEGRATION-_T-VfvkM.js +87 -0
- package/dist-storybook/assets/_setToString-CbM921C9.js +1 -0
- package/dist-storybook/assets/alert-DLW8CoyB.js +1 -0
- package/dist-storybook/assets/alert.stories-B-vuojPh.js +110 -0
- package/dist-storybook/assets/avatar-GxcYPA1p.js +1 -0
- package/dist-storybook/assets/avatar.stories-KYFztAc8.js +136 -0
- package/dist-storybook/assets/axe-CmvD4WV5.js +20 -0
- package/dist-storybook/assets/badge-D_LzMVtw.js +1 -0
- package/dist-storybook/assets/badge.stories-Be2ItCmQ.js +262 -0
- package/dist-storybook/assets/blocks-BuaOUtiH.js +1243 -0
- package/dist-storybook/assets/bottom-tab-bar-CtcTAxuI.js +115 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-CDmEve6z.js +186 -0
- package/dist-storybook/assets/button-CL7GeC23.js +1 -0
- package/dist-storybook/assets/button.stories-CaqLWQiY.js +287 -0
- package/dist-storybook/assets/calendar-dOCsjhVU.js +1 -0
- package/dist-storybook/assets/calendar.stories-DLWZldet.js +189 -0
- package/dist-storybook/assets/carousel-1Kww3hIz.js +37 -0
- package/dist-storybook/assets/carousel.stories-B8YbGOOr.js +217 -0
- package/dist-storybook/assets/checkbox-MGytNNRt.js +1 -0
- package/dist-storybook/assets/checkbox.stories-CLvfZPiw.js +201 -0
- package/dist-storybook/assets/chip-kG4p82WT.js +247 -0
- package/dist-storybook/assets/chip.stories-BbwJb5eD.js +442 -0
- package/dist-storybook/assets/classname-CUR_zgkh.js +1 -0
- package/dist-storybook/assets/colors-_6nFGM3e.js +1 -0
- package/dist-storybook/assets/date-Cg-Uk_pp.js +1 -0
- package/dist-storybook/assets/date-field.stories-Diptwqfv.js +129 -0
- package/dist-storybook/assets/date-picker-Dnq_-0Md.js +1 -0
- package/dist-storybook/assets/date-picker.stories-BuGWvzFL.js +123 -0
- package/dist-storybook/assets/default-error-BcnD8fFO.png +0 -0
- package/dist-storybook/assets/dialog.stories-DJ0WsSkA.js +212 -0
- package/dist-storybook/assets/dropdown.stories-D6JUYP73.js +200 -0
- package/dist-storybook/assets/embla-carousel-react.esm-BYjpaHZ9.js +1 -0
- package/dist-storybook/assets/en-Cs9O0XWn.js +15 -0
- package/dist-storybook/assets/icon-DdQsMyRa.js +1 -0
- package/dist-storybook/assets/icon.stories-B-ZvRzFf.js +365 -0
- package/dist-storybook/assets/iframe-CQAwSt4E.js +1071 -0
- package/dist-storybook/assets/iframe-yMKl6hJA.css +1 -0
- package/dist-storybook/assets/image-C3EsNRhz.js +9 -0
- package/dist-storybook/assets/image.stories-C4l8D3ju.js +255 -0
- package/dist-storybook/assets/index-B-Ksafg0.js +1 -0
- package/dist-storybook/assets/index-BV0AJWP6.js +1 -0
- package/dist-storybook/assets/index-CgMRTj-o.js +1 -0
- package/dist-storybook/assets/index-DHiZ-gXR.js +1 -0
- package/dist-storybook/assets/input-wrapper-BKHgnPy6.js +1 -0
- package/dist-storybook/assets/label-DV2iCDmN.js +27 -0
- package/dist-storybook/assets/label.stories-BwTIPFXX.js +138 -0
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +14 -0
- package/dist-storybook/assets/navigation-bar-vI-FPasP.js +79 -0
- package/dist-storybook/assets/navigation-bar.stories-DYuFaJFD.js +73 -0
- package/dist-storybook/assets/number-field-CXKmnfKe.js +1 -0
- package/dist-storybook/assets/number-field.stories--fn26TJu.js +167 -0
- package/dist-storybook/assets/omit-Bsx5nTI0.js +1 -0
- package/dist-storybook/assets/option-item-LRh_OyV4.js +1 -0
- package/dist-storybook/assets/option-item.stories-snjAvgay.js +66 -0
- package/dist-storybook/assets/pagination-DZHoBs_4.js +1 -0
- package/dist-storybook/assets/pagination.stories-BoEs0jzS.js +91 -0
- package/dist-storybook/assets/pick-BhmhLmLe.js +1 -0
- package/dist-storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/dist-storybook/assets/radio-B5NJxG_l.js +1 -0
- package/dist-storybook/assets/radio.stories-DuN-Awi_.js +183 -0
- package/dist-storybook/assets/rating-BdXViYBv.js +1 -0
- package/dist-storybook/assets/rating.stories-BCcQjMEx.js +117 -0
- package/dist-storybook/assets/react-18-CNyWQ7je.js +9 -0
- package/dist-storybook/assets/react-hufnxGVs.js +1 -0
- package/dist-storybook/assets/search-field-CQqgFbfg.js +1 -0
- package/dist-storybook/assets/search-field.stories-DiCZbhng.js +79 -0
- package/dist-storybook/assets/section-content-DGNB4eLN.js +1 -0
- package/dist-storybook/assets/section.stories-C2I_kKhu.js +69 -0
- package/dist-storybook/assets/sheet.stories-wk1JaKU5.js +152 -0
- package/dist-storybook/assets/skeleton-C91JgehG.js +1 -0
- package/dist-storybook/assets/skeleton.stories-BCmX-VNr.js +139 -0
- package/dist-storybook/assets/store-CPumdfcU.js +1 -0
- package/dist-storybook/assets/store-D2RudmNr.js +18 -0
- package/dist-storybook/assets/switch-p-aXI-ev.js +1 -0
- package/dist-storybook/assets/switch.stories-BqPLNKB9.js +250 -0
- package/dist-storybook/assets/tab-bar-CSeCmtIZ.js +31 -0
- package/dist-storybook/assets/tab-bar.stories-Cb6v8H2w.js +136 -0
- package/dist-storybook/assets/text-area-DwSXyqOe.js +1 -0
- package/dist-storybook/assets/text-area.stories-By8bCfgc.js +87 -0
- package/dist-storybook/assets/text-field-jK6rpOo2.js +1 -0
- package/dist-storybook/assets/text-field.stories-CrWBAhvI.js +92 -0
- package/dist-storybook/assets/toast-provider-DurnMJhd.js +9 -0
- package/dist-storybook/assets/toast.stories-iWAToAZA.js +201 -0
- package/dist-storybook/assets/tooltip-QDdel5My.js +1 -0
- package/dist-storybook/assets/tooltip.stories-RC6SuPPD.js +153 -0
- package/dist-storybook/assets/typography-DEpAJl_i.js +1 -0
- package/dist-storybook/assets/typography.stories-Bu8qFugR.js +202 -0
- package/dist-storybook/assets/uploader.stories-B2wW9qVy.js +65 -0
- package/dist-storybook/assets/use-app-pause-B_tWHKJK.js +29 -0
- package/dist-storybook/assets/use-app-resume--900G-dV.js +29 -0
- package/dist-storybook/assets/use-custom-icon-event-3VExRzvC.js +29 -0
- package/dist-storybook/assets/use-did-hide-BUsL73ab.js +48 -0
- package/dist-storybook/assets/use-did-show-C1-VLDxi.js +49 -0
- package/dist-storybook/assets/use-histories-E4E2jJEY.js +50 -0
- package/dist-storybook/assets/use-history-o1im8IDj.js +67 -0
- package/dist-storybook/assets/use-location-CUEaBO4P.js +56 -0
- package/dist-storybook/assets/use-navigate-C4CTuFSZ.js +84 -0
- package/dist-storybook/assets/use-navigation-type-Dcz4hgKo.js +44 -0
- package/dist-storybook/assets/use-page-config-DSJBVQbq.js +48 -0
- package/dist-storybook/assets/use-page-scroll-dY-U1Vv4.js +69 -0
- package/dist-storybook/assets/use-page-state-CtNpwGPN.js +79 -0
- package/dist-storybook/assets/use-settings-changed-BBJwIHTE.js +29 -0
- package/dist-storybook/assets/v-mini-icon-Dn1BmJzb.woff2 +0 -0
- package/dist-storybook/assets/visibility-sensor-CwrzJO06.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-CQAwSt4E.js";import{T as y,S as g,M as d,P as f,a as h}from"./blocks-BuaOUtiH.js";import{i as u,I as o}from"./icon-DdQsMyRa.js";import{t as s}from"./store-D2RudmNr.js";import"./preload-helper-PPVm8Dsz.js";import"./index-DHiZ-gXR.js";import"./colors-_6nFGM3e.js";import"./classname-CUR_zgkh.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};
|