Sha256: dd5f614c375def9888767d9f84a6908f0001c907ab19872b39168e58e1e7b00b

Contents?: true

Size: 1.98 KB

Versions: 24

Compression:

Stored size: 1.98 KB

Contents

# frozen_string_literal: true

module Plutonium
  module UI
    module Table
      class Theme < Phlexi::Table::Theme
        def self.theme
          super.merge({
            selection_checkbox: "w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600",
            name_column: "font-medium text-gray-900 whitespace-nowrap dark:text-white",
            align_start: "text-start",
            align_end: "text-end",
            wrapper: "relative overflow-x-auto shadow-md sm:rounded-lg",
            base: "w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",
            caption: "p-5 text-lg font-semibold text-left rtl:text-right text-gray-900 bg-white dark:text-white dark:bg-gray-800",
            description: "mt-1 text-sm font-normal text-gray-500 dark:text-gray-400",
            header: "text-xs text-gray-700 uppercase bg-gray-200 dark:bg-gray-700 dark:text-gray-400",
            header_grouping_cell: "px-6 py-3 text-center text-sm border-b border-t border-r last:border-r-0 dark:border-gray-800",
            header_cell: "px-6 py-3",
            header_cell_content_wrapper: "inline-flex items-center",
            header_cell_sort_wrapper: "flex items-center",
            header_cell_sort_indicator: "ml-1.5",
            body_row: "bg-white border-b last:border-none dark:bg-gray-800 dark:border-gray-700",
            body_cell: "px-6 py-4 whitespace-pre max-w-[310px] hover:max-w-[600px] overflow-hidden text-ellipsis transition-all duration-300 ease-in-out",
            sort_icon: "w-3 h-3",
            sort_icon_active: "text-primary-600",
            sort_icon_inactive: "text-gray-600 dark:text-gray-500",
            sort_index_clear_link: "ml-2",
            sort_index_clear_link_text: "text-xs font-bold text-gray-600 dark:text-gray-500",
            sort_index_clear_link_icon: "ml-1 text-red-600"
          })
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
plutonium-0.15.22 lib/plutonium/ui/table/theme.rb
plutonium-0.15.21 lib/plutonium/ui/table/theme.rb
plutonium-0.15.20 lib/plutonium/ui/table/theme.rb
plutonium-0.15.19 lib/plutonium/ui/table/theme.rb
plutonium-0.15.18 lib/plutonium/ui/table/theme.rb
plutonium-0.15.17 lib/plutonium/ui/table/theme.rb
plutonium-0.15.16 lib/plutonium/ui/table/theme.rb
plutonium-0.15.15 lib/plutonium/ui/table/theme.rb
plutonium-0.15.14 lib/plutonium/ui/table/theme.rb
plutonium-0.15.13 lib/plutonium/ui/table/theme.rb
plutonium-0.15.12 lib/plutonium/ui/table/theme.rb
plutonium-0.15.11 lib/plutonium/ui/table/theme.rb
plutonium-0.15.10 lib/plutonium/ui/table/theme.rb
plutonium-0.15.9 lib/plutonium/ui/table/theme.rb
plutonium-0.15.8 lib/plutonium/ui/table/theme.rb
plutonium-0.15.7 lib/plutonium/ui/table/theme.rb
plutonium-0.15.6 lib/plutonium/ui/table/theme.rb
plutonium-0.15.5 lib/plutonium/ui/table/theme.rb
plutonium-0.15.4 lib/plutonium/ui/table/theme.rb
plutonium-0.15.3 lib/plutonium/ui/table/theme.rb