NoRedInk/noredink-ui/22.6.0

NOTE: the latest version is 35.9.3

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/NoRedInk/noredink-ui.

What we checked: Tag 22.6.0 is still on github.com/NoRedInk/noredink-ui; its commit 7cae53f1af4b is from 2023-03-24 17:13 UTC, before the version was published (2023-03-27 14:55 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/NoRedInk/noredink-ui/zipball/22.6.0/

Nri.Ui.Tabs.V7

Patch changes:

  • use Tooltip.V3 instead of Tooltip.V2

Changes from V6:

  • Changes Tab construction to follow attributes-based approach
  • Adds tooltip support
  • combine onFocus and onSelect into focusAndSelect msg handler (for tooltips)
{ title : Maybe String
, alignment : Alignment
, customSpacing : Maybe Float
, focusAndSelect :
{ select : id
, focus : Maybe String
}
-> msg
, selected : id
, tabs : List (Tab id msg)
}
-> Html msg
= Left
| Center
| Right

Determines whether tabs are centered or floating to the left or right.

type Tab id msg
type Attribute id msg
{ id : id
, idString : String
}
-> List (Attribute id msg)
-> Tab id msg
tabString : String -> Attribute id msg
tabHtml : Html Never -> Attribute id msg
withTooltip : List (Attribute msg) -> Attribute id msg

Tooltip defaults: [Tooltip.smallPadding, Tooltip.onBottom, Tooltip.fitToContent]

disabled : Bool -> Attribute id msg

Makes it so that the tab can't be clicked or focused via keyboard navigation

labelledBy : String -> Attribute id msg

Sets an overriding labelledBy on the tab for an external tooltip. This assumes an external tooltip is set and disables any internal tooltip configured.

describedBy : String -> Attribute id msg

Like labelledBy, but it describes the given element instead of labeling it.

This attribute can be used multiple times if more than one element describes this tab.

panelHtml : Html msg -> Attribute id msg
spaHref : String -> Attribute id msg