diff --git a/resources/celerity/map.php b/resources/celerity/map.php --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -150,7 +150,6 @@ 'rsrc/css/phui/phui-spacing.css' => '042804d6', 'rsrc/css/phui/phui-status.css' => '888cedb8', 'rsrc/css/phui/phui-tag-view.css' => 'e60e227b', - 'rsrc/css/phui/phui-text.css' => 'cf019f54', 'rsrc/css/phui/phui-timeline-view.css' => '2efceff8', 'rsrc/css/phui/phui-two-column-view.css' => 'c75bfc5b', 'rsrc/css/phui/workboards/phui-workboard.css' => 'b07a5524', @@ -827,7 +826,6 @@ 'phui-spacing-css' => '042804d6', 'phui-status-list-view-css' => '888cedb8', 'phui-tag-view-css' => 'e60e227b', - 'phui-text-css' => 'cf019f54', 'phui-theme-css' => 'ab7b848c', 'phui-timeline-view-css' => '2efceff8', 'phui-two-column-view-css' => 'c75bfc5b', diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1525,8 +1525,6 @@ 'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php', 'PHUITagExample' => 'applications/uiexample/examples/PHUITagExample.php', 'PHUITagView' => 'view/phui/PHUITagView.php', - 'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php', - 'PHUITextView' => 'view/phui/PHUITextView.php', 'PHUITimelineEventView' => 'view/phui/PHUITimelineEventView.php', 'PHUITimelineExample' => 'applications/uiexample/examples/PHUITimelineExample.php', 'PHUITimelineView' => 'view/phui/PHUITimelineView.php', @@ -5702,8 +5700,6 @@ 'PHUIStatusListView' => 'AphrontTagView', 'PHUITagExample' => 'PhabricatorUIExample', 'PHUITagView' => 'AphrontTagView', - 'PHUITextExample' => 'PhabricatorUIExample', - 'PHUITextView' => 'AphrontTagView', 'PHUITimelineEventView' => 'AphrontView', 'PHUITimelineExample' => 'PhabricatorUIExample', 'PHUITimelineView' => 'AphrontView', diff --git a/src/applications/uiexample/examples/PHUITextExample.php b/src/applications/uiexample/examples/PHUITextExample.php deleted file mode 100644 --- a/src/applications/uiexample/examples/PHUITextExample.php +++ /dev/null @@ -1,107 +0,0 @@ -setText($color1) - ->addClass(PHUI::TEXT_RED), - id(new PHUITextView()) - ->setText($color2) - ->addClass(PHUI::TEXT_ORANGE), - id(new PHUITextView()) - ->setText($color3) - ->addClass(PHUI::TEXT_YELLOW), - id(new PHUITextView()) - ->setText($color4) - ->addClass(PHUI::TEXT_GREEN), - id(new PHUITextView()) - ->setText($color5) - ->addClass(PHUI::TEXT_BLUE), - id(new PHUITextView()) - ->setText($color6) - ->addClass(PHUI::TEXT_INDIGO), - id(new PHUITextView()) - ->setText($color7) - ->addClass(PHUI::TEXT_VIOLET), - id(new PHUITextView()) - ->setText($color8) - ->addClass(PHUI::TEXT_WHITE), - id(new PHUITextView()) - ->setText($color9) - ->addClass(PHUI::TEXT_BLACK), - ); - - $content2 = - array( - id(new PHUITextView()) - ->setText($text1) - ->addClass(PHUI::TEXT_BOLD), - id(new PHUITextView()) - ->setText($text2) - ->addClass(PHUI::TEXT_UPPERCASE), - id(new PHUITextView()) - ->setText($text3) - ->addClass(PHUI::TEXT_STRIKE), - ); - - $layout1 = id(new PHUIBoxView()) - ->appendChild($content) - ->setBorder(true) - ->addPadding(PHUI::PADDING_MEDIUM); - - $head1 = id(new PHUIHeaderView()) - ->setHeader(pht('Basic Colors')); - - $wrap1 = id(new PHUIBoxView()) - ->appendChild($layout1) - ->addMargin(PHUI::MARGIN_LARGE); - - $layout2 = id(new PHUIBoxView()) - ->appendChild($content2) - ->setBorder(true) - ->addPadding(PHUI::PADDING_MEDIUM); - - $head2 = id(new PHUIHeaderView()) - ->setHeader(pht('Basic Transforms')); - - $wrap2 = id(new PHUIBoxView()) - ->appendChild($layout2) - ->addMargin(PHUI::MARGIN_LARGE); - - return phutil_tag( - 'div', - array(), - array( - $head1, - $wrap1, - $head2, - $wrap2, - )); - } -} diff --git a/src/view/phui/PHUITextView.php b/src/view/phui/PHUITextView.php deleted file mode 100644 --- a/src/view/phui/PHUITextView.php +++ /dev/null @@ -1,20 +0,0 @@ -appendChild($text); - return $this; - } - - protected function getTagName() { - return 'span'; - } - - protected function getTagAttributes() { - require_celerity_resource('phui-text-css'); - return array(); - } -} diff --git a/webroot/rsrc/css/phui/phui-text.css b/webroot/rsrc/css/phui/phui-text.css deleted file mode 100644 --- a/webroot/rsrc/css/phui/phui-text.css +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @provides phui-text-css - */ - - -/* Styles */ -.phui-text-bold { - font-weight: bold; -} - -.phui-text-uppercase { - text-transform: uppercase; -} - -.phui-text-strike { - text-decoration: line-through; -} - - -/* Colors */ -.phui-text-red { - color: {$red}; -} - -.phui-text-orange { - color: {$orange}; -} - -.phui-text-yellow { - color: {$yellow}; -} - -.phui-text-green { - color: {$green} -} - -.phui-text-blue { - color: {$blue}; -} - -.phui-text-indigo { - color: {$indigo}; -} - -.phui-text-violet { - color: {$violet}; -} - -.phui-text-white { - color: #fff; -} - -.phui-text-black { - color: #333; -}