playbook_ui_docs 14.24.0.pre.alpha.PLAY2329atstickypinnedborderbug9340 → 14.24.0.pre.alpha.PLAY19989342

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84f80fd07cc20b66edbeb91086fb5aa0ed136701f0ab09fb56062fa8f1d7c4f6
4
- data.tar.gz: 9bdc79a1f2c60edc60e57a4dfd9dfdebcb2026b6eb126d0909550d986fab2101
3
+ metadata.gz: 1fc180bfb34babd145208db88518a4f1ed3a27e7425182530ce9483d7e8cd39d
4
+ data.tar.gz: 6d16468982c4b9195e000a53959fd72a6d8d3f562c1cc4b5e686789ae3aeceef
5
5
  SHA512:
6
- metadata.gz: ac182cf21bf517cab819d071c05eadf337db4099d6911e3e5c5f071fab635f7f3c71c80a71bd8eeff5b5a78ef4d7f16d37fcea2d52676f4e50ceb372984ab239
7
- data.tar.gz: 0e2dce525a55172689cd95dc121c6ff5da739070ff000c80779335fac22e85c6846a8602fe17a5ae965f3b90c316ad1493c6152ffe29dad0290ae843fb2e1231
6
+ metadata.gz: 07cce2250cf6303bb7592e30ff46990eb2d4ce2f6b639bc0cfbfe033978d0edceb456503b45cf38b0e62d6039b3eee8bb34dbda5609e701723444d35f565ab59
7
+ data.tar.gz: 44930773ebdd4d074a9daee331b03f11ad3f1cebee831fbe16084416fa9b6030922f67363bb8b1d2ba3efa6156354b4b9385f7b042a67edaf0483c8ea9d40ad7
@@ -0,0 +1,4 @@
1
+ <%= pb_rails("date", props: {
2
+ date: Date.today,
3
+ show_current_year: true
4
+ }) %>
@@ -0,0 +1,17 @@
1
+ import React from 'react'
2
+
3
+ import FormattedDate from '../../pb_date/_date'
4
+
5
+ const DateWithShowCurrentYear = (props) => {
6
+ return (
7
+ <>
8
+ <FormattedDate
9
+ showCurrentYear
10
+ value={new Date()}
11
+ {...props}
12
+ />
13
+ </>
14
+ )
15
+ }
16
+
17
+ export default DateWithShowCurrentYear
@@ -0,0 +1 @@
1
+ By default, the Date kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting `showCurrentYear`/`show_current_year` to true as shown here.
@@ -5,12 +5,14 @@ examples:
5
5
  - date_variants: Variants
6
6
  - date_alignment: Alignment
7
7
  - date_timezone: Timezones
8
+ - date_with_show_current_year: Show Current Year
8
9
  - date_unstyled: Unstyled
9
10
 
10
11
  react:
11
12
  - date_default: Default
12
13
  - date_variants: Variants
13
14
  - date_alignment: Alignment
15
+ - date_with_show_current_year: Show Current Year
14
16
  - date_unstyled: Unstyled
15
17
 
16
18
  swift:
@@ -2,3 +2,4 @@ export { default as DateDefault } from './_date_default.jsx'
2
2
  export { default as DateVariants } from './_date_variants.jsx'
3
3
  export { default as DateAlignment } from './_date_alignment.jsx'
4
4
  export { default as DateUnstyled } from './_date_unstyled.jsx'
5
+ export { default as DateWithShowCurrentYear } from './_date_with_show_current_year.jsx'