UNPKG

@postnord/web-components

Version:

PostNord Web Components

47 lines (46 loc) 2.14 kB
/*! * Built with Stencil * By PostNord. */ const figmaUrl = 'https://www.figma.com/design/bQaGjPYFEJUbSzuCRjyJpY/Link-Design-System---Core?node-id='; const figmaIds = { accordion: '4504-7&node-type=CANVAS&t=bRocLT5sJ4BPOJle-0', breadcrumbs: '4510-3412&t=2CYR2ONI1edWhvfD-0', button_dropdown: '4504-8&t=2CYR2ONI1edWhvfD-0', button: '4504-8&t=2CYR2ONI1edWhvfD-0', checkbox: '4510-2870&t=2CYR2ONI1edWhvfD-0', choice_chip: '41526-3207&t=2CYR2ONI1edWhvfD-0', counter: '16681-87305&t=2CYR2ONI1edWhvfD-0', date_picker: '4510-2903&t=2CYR2ONI1edWhvfD-0', file_upload: '4510-5147&t=2CYR2ONI1edWhvfD-0', header: '41406-14261&t=2CYR2ONI1edWhvfD-0', icons: '4504-423&t=eitiVKRKw6kkNL3x-0', illustrations: '4504-1553&node-type=CANVAS&t=bRocLT5sJ4BPOJle-0', input_field: '4510-2738&t=2CYR2ONI1edWhvfD-0', input: '45468-766&t=2CYR2ONI1edWhvfD-0', modal: '4510-2906&t=eitiVKRKw6kkNL3x-00', progress_bar: '37342-8353&t=eitiVKRKw6kkNL3x-0', progress_indicator: '4510-3139&t=eitiVKRKw6kkNL3x-0', progress_stepper: '37342-8353&t=eitiVKRKw6kkNL3x-0', radio_button: '4510-2882&t=2CYR2ONI1edWhvfD-0', read_only_button: '33510-60215&t=2CYR2ONI1edWhvfD-0', search_field: '4510-2775&t=2CYR2ONI1edWhvfD-0', segmented_control: '5462-34199&t=2CYR2ONI1edWhvfD-0', select: '4510-2764&t=2CYR2ONI1edWhvfD-0', spinner: '4510-3076&t=eitiVKRKw6kkNL3x-0', table: '4717-225&t=lvTlAlJWKsSs6TLv-1', tablist: '4717-473&t=2CYR2ONI1edWhvfD-0', tag: '4510-3074&t=eitiVKRKw6kkNL3x-0', textarea: '42145-1576&node-type=CANVAS&t=bRocLT5sJ4BPOJle-0', text_link: '35222-3169&t=2CYR2ONI1edWhvfD-0', tile: '4689-197&t=2CYR2ONI1edWhvfD-0', toast: '4510-3079&t=eitiVKRKw6kkNL3x-0', toggle_switch: '4510-2896&t=2CYR2ONI1edWhvfD-0', tooltip: '4510-3137&t=eitiVKRKw6kkNL3x-0', colors: '4504-110&t=lvTlAlJWKsSs6TLv-1', }; export const getFigmaUrl = (fileName) => { const key = fileName.split('/').pop()?.split('.')[0].replace(/-/g, '_').slice(3); return figmaIds[key] ? figmaUrl + figmaIds[key] : undefined; }; //# sourceMappingURL=figmaLinks.js.map