0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-04 19:11:20 -05:00

Merge pull request #5124 from penpot/eva-move-tab-switcher

♻️  Move tab-switcher to its own folder inside DS
This commit is contained in:
Alejandro 2024-09-30 09:29:15 +02:00 committed by GitHub
commit d5a9961ec8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 15 additions and 15 deletions

View file

@ -16,10 +16,10 @@
[app.main.ui.ds.foundations.typography :refer [typography-list]]
[app.main.ui.ds.foundations.typography.heading :refer [heading*]]
[app.main.ui.ds.foundations.typography.text :refer [text*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.notifications.toast :refer [toast*]]
[app.main.ui.ds.product.loader :refer [loader*]]
[app.main.ui.ds.storybook :as sb]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.util.i18n :as i18n]))

View file

@ -283,7 +283,7 @@
[:class {:optional true} :string]
[:id [:and :string [:fn #(contains? icon-list %)]]]
[:size {:optional true}
[:enum "s" "m"]]])
[:maybe [:enum "s" "m"]]]])
(mf/defc icon*
{::mf/props :obj

View file

@ -4,7 +4,7 @@
;;
;; Copyright (c) KALEIDOS INC
(ns app.main.ui.ds.tab-switcher
(ns app.main.ui.ds.layout.tab-switcher
(:require-macros
[app.common.data.macros :as dm]
[app.main.style :as stl])
@ -114,7 +114,7 @@
[:selected {:optional true} :string]
[:action-button {:optional true} some?]
[:action-button-position {:optional true}
[:enum "start" "end"]]])
[:maybe [:enum "start" "end"]]]])
(mf/defc tab-switcher*
{::mf/props :obj

View file

@ -2,7 +2,7 @@ import { Canvas, Meta } from '@storybook/blocks';
import * as TabSwitcher from "./tab_switcher.stories";
<Meta title="Tab switcher" />
<Meta title= "Layout/Tab Switcher" />
# Tab Switcher

View file

@ -4,9 +4,9 @@
//
// Copyright (c) KALEIDOS INC
@use "./_sizes.scss" as *;
@use "./_borders.scss" as *;
@use "./typography.scss" as *;
@use "../_sizes.scss" as *;
@use "../_borders.scss" as *;
@use "../typography.scss" as *;
.tabs {
--tabs-bg-color: var(--color-background-secondary);

View file

@ -14,7 +14,7 @@ const Padded = ({ children }) => (
);
export default {
title: "Tab switcher",
title: "Layout/Tab switcher",
component: TabSwitcher,
args: {
tabs: [

View file

@ -24,7 +24,7 @@
[:map
[:class {:optional true} :string]
[:level {:optional true}
[:enum "info" "warning" "error" "success"]]
[:maybe [:enum "info" "warning" "error" "success"]]]
[:on-close {:optional true} fn?]])
(mf/defc toast*

View file

@ -11,7 +11,7 @@
[app.common.types.component :as ctk]
[app.main.refs :as refs]
[app.main.ui.components.shape-icon :as sir]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.icons :as i]
[app.main.ui.viewer.inspect.attributes :refer [attributes]]
[app.main.ui.viewer.inspect.code :refer [code]]

View file

@ -22,7 +22,7 @@
[app.main.ui.components.file-uploader :refer [file-uploader]]
[app.main.ui.components.select :refer [select]]
[app.main.ui.ds.foundations.assets.icon :as ic]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.icons :as i]
[app.main.ui.workspace.colorpicker.color-inputs :refer [color-inputs]]
[app.main.ui.workspace.colorpicker.gradients :refer [gradients]]

View file

@ -25,7 +25,7 @@
[app.main.ui.components.link-button :as lb]
[app.main.ui.components.search-bar :refer [search-bar]]
[app.main.ui.components.title-bar :refer [title-bar]]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.hooks :as h]
[app.main.ui.icons :as i]
[app.util.color :as uc]

View file

@ -13,7 +13,7 @@
[app.main.store :as st]
[app.main.ui.context :as muc]
[app.main.ui.ds.foundations.assets.icon :refer [icon*]]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.hooks.resize :refer [use-resize-hook]]
[app.main.ui.workspace.comments :refer [comments-sidebar]]
[app.main.ui.workspace.left-header :refer [left-header]]

View file

@ -16,7 +16,7 @@
[app.main.refs :as refs]
[app.main.store :as st]
[app.main.ui.context :as ctx]
[app.main.ui.ds.tab-switcher :refer [tab-switcher*]]
[app.main.ui.ds.layout.tab-switcher :refer [tab-switcher*]]
[app.main.ui.viewer.inspect.right-sidebar :as hrs]
[app.main.ui.workspace.sidebar.options.menus.align :refer [align-options]]
[app.main.ui.workspace.sidebar.options.menus.bool :refer [bool-options]]