Sha256: df38364bfcb921134be431b1577864a446ab6bd20e5568d9039eba16bc335d3d

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 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_index_clear_link: "ml-2",
            sort_index_clear_link_text: "text-xs font-bold",
            sort_index_clear_link_icon: "ml-1 text-red-600"
          })
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
plutonium-0.15.0.pre.rc2 lib/plutonium/ui/table/theme.rb
plutonium-0.15.0.pre.rc1 lib/plutonium/ui/table/theme.rb