Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: sdk-ui-attributes
version: master
title: UI JS SDK attributes
1 change: 1 addition & 0 deletions docs/modules/ROOT/examples/types
1 change: 1 addition & 0 deletions docs/modules/ROOT/examples/widgets
1 change: 1 addition & 0 deletions docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* xref:index.adoc[]
15 changes: 15 additions & 0 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
= {company} UI SDK

placeholder

{localdatetime}

== Test fetch

[cols="28%m,16%s,56%a"]
|===
|Attribute |Type |Description

include::sdk-ui-attributes:ROOT:example$types/styled.d.ts[tags="animateWidgetEntrance,fontSize,smallTextFontSize"]

|===
30 changes: 24 additions & 6 deletions src/types/styled.d.ts
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les commentaires doivent être au dessus de l'expression qu'ils concernent.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah oui. 😵‍💫I'm an eejit. Merci. I'll tweak that. 🙏🏼

Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,34 @@ export interface BaseTheme {
* @default true
*/
animateWidgetEntrance: boolean
/** Specifies the font-size.
* @default 14
/** tag::animateWidgetEntrance[]
|animateWidgetEntrance
|boolean
|Indicates whether the widget should be animated or not.

@default true

end::animateWidgetEntrance[]
*/
fontSize: number
/** Specifies the font-size for small texts.
* @default 12
/** tag::fontSize[]
|fontSize
|number
|Specifies the text font size.

@default 12

end::fontSize[]
*/
smallTextFontSize: number
/** Specifies the line-height.
* @default 1.428571429
/** tag::smallTextFontSize[]
|smallTextFontSize
|number
|Specifies font size for small text (in rem).

@default 1.428571429

end::smallTextFontSize[]
*/
lineHeight: number
/**
Expand Down