Skip to content

Commit

Permalink
Merge pull request #165 from ably/add-icons
Browse files Browse the repository at this point in the history
Add icons
  • Loading branch information
Dominik authored Apr 1, 2022
2 parents ac5badb + 625d79a commit 748c60b
Show file tree
Hide file tree
Showing 31 changed files with 123 additions and 21 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ably-ui (7.0.1)
ably-ui (7.0.1.dev.778adc0)
view_component (>= 2.33, < 2.50)

GEM
Expand Down
2 changes: 1 addition & 1 deletion lib/ably_ui/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AblyUi
VERSION = '7.0.1'
VERSION = '7.0.1.dev.778adc0'
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ably/ui",
"version": "7.0.1",
"version": "7.0.1-dev.778adc0",
"description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion preview/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ gem 'view_component', '~> 2.33.0', require: 'view_component/engine'

gem 'responders'

gem 'ably-ui', '7.0.1', require: 'ably_ui'
gem 'ably-ui', '7.0.1.dev.778adc0', require: 'ably_ui'
4 changes: 2 additions & 2 deletions preview/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
ably-ui (7.0.1)
ably-ui (7.0.1.dev.778adc0)
view_component (>= 2.33, < 2.50)
actioncable (6.0.3.4)
actionpack (= 6.0.3.4)
Expand Down Expand Up @@ -169,7 +169,7 @@ PLATFORMS
ruby

DEPENDENCIES
ably-ui (= 7.0.1)
ably-ui (= 7.0.1.dev.778adc0)
bootsnap (>= 1.4.2)
byebug
listen (~> 3.2)
Expand Down
43 changes: 35 additions & 8 deletions preview/app/controllers/components_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,50 @@ def icon
template = "icon_#{framework}.html.erb"
core_icons = %w[
icon-gui-ably-badge
icon-gui-arrow-bidirectional-horizontal
icon-gui-arrow-bidirectional-vertical
icon-gui-arrow-down
icon-gui-arrow-left
icon-gui-arrow-right
icon-gui-arrow-up
icon-gui-burger-menu
icon-gui-check-circled-fill
icon-gui-check-circled
icon-gui-checklist-checked
icon-gui-clock
icon-gui-close
icon-gui-cross-circled-fill
icon-gui-cross-circled
icon-gui-dash-circled
icon-gui-disclosure-arrow
icon-gui-document-generic
icon-gui-enlarge
icon-gui-external-link
icon-gui-history
icon-gui-info
icon-gui-link-arrow
icon-gui-live-chat
icon-gui-minus
icon-gui-plus
icon-gui-quote-marks-solid
icon-gui-refresh
icon-gui-search
icon-gui-tick
icon-gui-warning
icon-gui-clock
icon-gui-arrow-bidirectional-vertical
icon-gui-arrow-bidirectional-horizontal
]

display_icons = %w[
icon-display-48hrs
icon-display-api-keys
icon-display-api
icon-display-browser
icon-display-calendar
icon-display-call-mobile
icon-display-cloud-servers
icon-display-documentation
icon-display-gdpr
icon-display-general-comms
icon-display-hipaa
icon-display-it-support-access
icon-display-it-support-helpdesk
icon-display-laptop
Expand All @@ -79,13 +96,23 @@ def icon
icon-display-message
icon-display-padlock-closed
icon-display-platform
icon-display-play
icon-display-privacy-shield-framework
icon-display-servers
icon-display-shopping-cart
icon-display-sla
icon-display-soc2-type2
icon-display-tech-account-comms
]

social_icons = %w[linkedin twitter github glassdoor facebook]
social_icons = %w[
discord
facebook
github
glassdoor
linkedin
twitter
]

other_icons = %w[quote]

Expand Down Expand Up @@ -133,9 +160,9 @@ def meganav_props
def meganav_react_props
props = {
paths: {
logo: helpers.asset_path('ably_ui/core/images/ably-logo.svg'),
icon_sprites: helpers.asset_path('ably_ui/core/sprites.svg'),
ably_stack: helpers.asset_path('ably_ui/core/images/ably-stack.svg'),
logo: helpers.asset_path('ably_ui/core/images/ably-logo'),
icon_sprites: helpers.asset_path('ably_ui/core/sprites'),
ably_stack: helpers.asset_path('ably_ui/core/images/ably-stack'),
blog_thumb1: helpers.asset_path('ably_ui/core/images/blog-thumb1.jpg'),
blog_thumb2: helpers.asset_path('ably_ui/core/images/blog-thumb2.jpg'),
blog_thumb3: helpers.asset_path('ably_ui/core/images/blog-thumb3.jpg')
Expand All @@ -162,7 +189,7 @@ def meganav_vw_props
def footer_react_props
{
paths: {
ably_stack: helpers.asset_path('ably_ui/core/images/ably-stack.svg'),
ably_stack: helpers.asset_path('ably_ui/core/images/ably-stack'),
rocket_list:
helpers.asset_path('ably_ui/core/images/rocket-list-2021.png'),
flexible_companies:
Expand Down
2 changes: 1 addition & 1 deletion preview/app/views/components/icon_react.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<%= render partial: 'components/icon/arguments', locals: { component_parameters: component_parameters, framework: framework } %>

<h2 class="text-h2 mb-32 font-sans">Core Icons</h2>
<h2 class="text-h2 mb-32 font-sans">GUI Icons</h2>
<%= render partial: 'components/icon/grid_react', locals: { icons: core_icons, size: "1.25rem" } %>

<h2 class="text-h2 mb-32 font-sans">Display Icons</h2>
Expand Down
2 changes: 1 addition & 1 deletion preview/app/views/components/icon_vw.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<%= render partial: 'components/icon/arguments', locals: { component_parameters: component_parameters, framework: framework } %>

<h2 class="text-h2 mb-32 font-sans">Core Icons</h2>
<h2 class="text-h2 mb-32 font-sans">GUI Icons</h2>
<%= render partial: 'components/icon/grid_vw', locals: { icons: core_icons, size: "1.25rem" } %>

<h2 class="text-h2 mb-32 font-sans">Display Icons</h2>
Expand Down
2 changes: 1 addition & 1 deletion preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "preview",
"private": true,
"dependencies": {
"@ably/ui": "7.0.1",
"@ably/ui": "7.0.1-dev.778adc0",
"@babel/preset-react": "^7.12.5",
"@rails/ujs": "^6.0.0",
"@rails/webpacker": "4.3.0",
Expand Down
8 changes: 4 additions & 4 deletions preview/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@ably/[email protected]":
version "7.0.1"
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-7.0.1.tgz#cf92e2f70c196a501d6e70c42643460c66e3e7a2"
integrity sha512-xkU1Za3J+qtMkswDD/lYg9Db1kviMpOAdBT7byo2qphxs3rnvEHw98ZgctJrhOd7FDEq62wIC0fFoaVmcU10vw==
"@ably/[email protected]-dev.778adc0":
version "7.0.1-dev.778adc0"
resolved "https://registry.yarnpkg.com/@ably/ui/-/ui-7.0.1-dev.778adc0.tgz#26f49075379e1439aeb11173ce29317a2af78c39"
integrity sha512-1Fjvdk4jjIotJPvV0MzuTRDVmOYcTgkODNg1T/9P+SYXrEnMatmjCC8kbfWtEiNsFY/Y/6eutkCHOsQVT7pzsg==
dependencies:
array-flat-polyfill "^1.0.1"
deepmerge "^4.2.2"
Expand Down
3 changes: 3 additions & 0 deletions src/core/icons/icon-display-api.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-display-gdpr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/core/icons/icon-display-hipaa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-display-play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 748c60b

Please sign in to comment.