@frontify/fondue-components 29.0.1 → 29.2.0
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.
- package/dist/fondue-components.js +72 -70
- package/dist/fondue-components.js.map +1 -1
- package/dist/fondue-components10.js +176 -33
- package/dist/fondue-components10.js.map +1 -1
- package/dist/fondue-components100.js +8 -23
- package/dist/fondue-components100.js.map +1 -1
- package/dist/fondue-components101.js +11 -34
- package/dist/fondue-components101.js.map +1 -1
- package/dist/fondue-components102.js +10 -10
- package/dist/fondue-components103.js +6 -67
- package/dist/fondue-components103.js.map +1 -1
- package/dist/fondue-components104.js +12 -14
- package/dist/fondue-components104.js.map +1 -1
- package/dist/fondue-components105.js +22 -25
- package/dist/fondue-components105.js.map +1 -1
- package/dist/fondue-components106.js +34 -19
- package/dist/fondue-components106.js.map +1 -1
- package/dist/fondue-components107.js +10 -24
- package/dist/fondue-components107.js.map +1 -1
- package/dist/fondue-components108.js +67 -8
- package/dist/fondue-components108.js.map +1 -1
- package/dist/fondue-components109.js +14 -30
- package/dist/fondue-components109.js.map +1 -1
- package/dist/fondue-components11.js +35 -185
- package/dist/fondue-components11.js.map +1 -1
- package/dist/fondue-components110.js +23 -4
- package/dist/fondue-components110.js.map +1 -1
- package/dist/fondue-components111.js +17 -15
- package/dist/fondue-components111.js.map +1 -1
- package/dist/fondue-components112.js +25 -127
- package/dist/fondue-components112.js.map +1 -1
- package/dist/fondue-components113.js +9 -11
- package/dist/fondue-components113.js.map +1 -1
- package/dist/fondue-components114.js +33 -36
- package/dist/fondue-components114.js.map +1 -1
- package/dist/fondue-components115.js +7 -14
- package/dist/fondue-components115.js.map +1 -1
- package/dist/fondue-components116.js +4 -14
- package/dist/fondue-components116.js.map +1 -1
- package/dist/fondue-components117.js +5 -111
- package/dist/fondue-components117.js.map +1 -1
- package/dist/fondue-components118.js +16 -12
- package/dist/fondue-components118.js.map +1 -1
- package/dist/fondue-components119.js +14 -17
- package/dist/fondue-components119.js.map +1 -1
- package/dist/fondue-components12.js +185 -7
- package/dist/fondue-components12.js.map +1 -1
- package/dist/fondue-components120.js +16 -12
- package/dist/fondue-components120.js.map +1 -1
- package/dist/fondue-components121.js +107 -213
- package/dist/fondue-components121.js.map +1 -1
- package/dist/fondue-components122.js +10 -16
- package/dist/fondue-components122.js.map +1 -1
- package/dist/fondue-components123.js +16 -16
- package/dist/fondue-components123.js.map +1 -1
- package/dist/fondue-components124.js +12 -150
- package/dist/fondue-components124.js.map +1 -1
- package/dist/fondue-components125.js +32 -44
- package/dist/fondue-components125.js.map +1 -1
- package/dist/fondue-components126.js +6 -5
- package/dist/fondue-components126.js.map +1 -1
- package/dist/fondue-components127.js +127 -5
- package/dist/fondue-components127.js.map +1 -1
- package/dist/fondue-components128.js +11 -29
- package/dist/fondue-components128.js.map +1 -1
- package/dist/fondue-components129.js +39 -0
- package/dist/fondue-components129.js.map +1 -0
- package/dist/fondue-components13.js +8 -63
- package/dist/fondue-components13.js.map +1 -1
- package/dist/fondue-components130.js +216 -40
- package/dist/fondue-components130.js.map +1 -1
- package/dist/fondue-components131.js +19 -6
- package/dist/fondue-components131.js.map +1 -1
- package/dist/fondue-components132.js +16 -11
- package/dist/fondue-components132.js.map +1 -1
- package/dist/fondue-components133.js +150 -70
- package/dist/fondue-components133.js.map +1 -1
- package/dist/fondue-components134.js +44 -14
- package/dist/fondue-components134.js.map +1 -1
- package/dist/fondue-components135.js +170 -7
- package/dist/fondue-components135.js.map +1 -1
- package/dist/fondue-components136.js +57 -86
- package/dist/fondue-components136.js.map +1 -1
- package/dist/fondue-components137.js +9 -81
- package/dist/fondue-components137.js.map +1 -1
- package/dist/fondue-components138.js +254 -29
- package/dist/fondue-components138.js.map +1 -1
- package/dist/fondue-components14.js +61 -35
- package/dist/fondue-components14.js.map +1 -1
- package/dist/fondue-components140.js +40 -58
- package/dist/fondue-components140.js.map +1 -1
- package/dist/fondue-components141.js +41 -9
- package/dist/fondue-components141.js.map +1 -1
- package/dist/fondue-components142.js +6 -256
- package/dist/fondue-components142.js.map +1 -1
- package/dist/fondue-components143.js +11 -18
- package/dist/fondue-components143.js.map +1 -1
- package/dist/fondue-components144.js +68 -67
- package/dist/fondue-components144.js.map +1 -1
- package/dist/fondue-components145.js +14 -1351
- package/dist/fondue-components145.js.map +1 -1
- package/dist/fondue-components146.js +7 -941
- package/dist/fondue-components146.js.map +1 -1
- package/dist/fondue-components147.js +87 -196
- package/dist/fondue-components147.js.map +1 -1
- package/dist/fondue-components148.js +78 -18
- package/dist/fondue-components148.js.map +1 -1
- package/dist/fondue-components149.js +30 -39
- package/dist/fondue-components149.js.map +1 -1
- package/dist/fondue-components15.js +36 -121
- package/dist/fondue-components15.js.map +1 -1
- package/dist/fondue-components150.js +17 -66
- package/dist/fondue-components150.js.map +1 -1
- package/dist/fondue-components151.js +69 -30
- package/dist/fondue-components151.js.map +1 -1
- package/dist/fondue-components152.js +1352 -9
- package/dist/fondue-components152.js.map +1 -1
- package/dist/fondue-components153.js +939 -151
- package/dist/fondue-components153.js.map +1 -1
- package/dist/fondue-components154.js +197 -107
- package/dist/fondue-components154.js.map +1 -1
- package/dist/fondue-components155.js +22 -17
- package/dist/fondue-components155.js.map +1 -1
- package/dist/fondue-components156.js +39 -15
- package/dist/fondue-components156.js.map +1 -1
- package/dist/fondue-components157.js +68 -29
- package/dist/fondue-components157.js.map +1 -1
- package/dist/fondue-components158.js +31 -13
- package/dist/fondue-components158.js.map +1 -1
- package/dist/fondue-components159.js +9 -7
- package/dist/fondue-components159.js.map +1 -1
- package/dist/fondue-components16.js +121 -36
- package/dist/fondue-components16.js.map +1 -1
- package/dist/fondue-components160.js +156 -0
- package/dist/fondue-components160.js.map +1 -0
- package/dist/fondue-components161.js +111 -0
- package/dist/fondue-components161.js.map +1 -0
- package/dist/fondue-components162.js +19 -0
- package/dist/fondue-components162.js.map +1 -0
- package/dist/fondue-components163.js +32 -0
- package/dist/fondue-components163.js.map +1 -0
- package/dist/fondue-components164.js +16 -0
- package/dist/fondue-components164.js.map +1 -0
- package/dist/fondue-components165.js +10 -0
- package/dist/fondue-components165.js.map +1 -0
- package/dist/fondue-components166.js +19 -0
- package/dist/fondue-components166.js.map +1 -0
- package/dist/fondue-components17.js +30 -39
- package/dist/fondue-components17.js.map +1 -1
- package/dist/fondue-components18.js +44 -41
- package/dist/fondue-components18.js.map +1 -1
- package/dist/fondue-components19.js +42 -57
- package/dist/fondue-components19.js.map +1 -1
- package/dist/fondue-components20.js +55 -41
- package/dist/fondue-components20.js.map +1 -1
- package/dist/fondue-components21.js +39 -16
- package/dist/fondue-components21.js.map +1 -1
- package/dist/fondue-components22.js +17 -43
- package/dist/fondue-components22.js.map +1 -1
- package/dist/fondue-components23.js +46 -68
- package/dist/fondue-components23.js.map +1 -1
- package/dist/fondue-components24.js +67 -71
- package/dist/fondue-components24.js.map +1 -1
- package/dist/fondue-components25.js +72 -16
- package/dist/fondue-components25.js.map +1 -1
- package/dist/fondue-components26.js +18 -77
- package/dist/fondue-components26.js.map +1 -1
- package/dist/fondue-components27.js +75 -34
- package/dist/fondue-components27.js.map +1 -1
- package/dist/fondue-components28.js +34 -53
- package/dist/fondue-components28.js.map +1 -1
- package/dist/fondue-components29.js +55 -23
- package/dist/fondue-components29.js.map +1 -1
- package/dist/fondue-components3.js +1 -1
- package/dist/fondue-components30.js +23 -55
- package/dist/fondue-components30.js.map +1 -1
- package/dist/fondue-components31.js +52 -97
- package/dist/fondue-components31.js.map +1 -1
- package/dist/fondue-components32.js +98 -31
- package/dist/fondue-components32.js.map +1 -1
- package/dist/fondue-components33.js +31 -194
- package/dist/fondue-components33.js.map +1 -1
- package/dist/fondue-components34.js +184 -134
- package/dist/fondue-components34.js.map +1 -1
- package/dist/fondue-components35.js +143 -130
- package/dist/fondue-components35.js.map +1 -1
- package/dist/fondue-components36.js +131 -30
- package/dist/fondue-components36.js.map +1 -1
- package/dist/fondue-components37.js +29 -79
- package/dist/fondue-components37.js.map +1 -1
- package/dist/fondue-components38.js +68 -110
- package/dist/fondue-components38.js.map +1 -1
- package/dist/fondue-components39.js +121 -34
- package/dist/fondue-components39.js.map +1 -1
- package/dist/fondue-components4.js +21 -19
- package/dist/fondue-components4.js.map +1 -1
- package/dist/fondue-components40.js +36 -56
- package/dist/fondue-components40.js.map +1 -1
- package/dist/fondue-components41.js +56 -20
- package/dist/fondue-components41.js.map +1 -1
- package/dist/fondue-components42.js +20 -25
- package/dist/fondue-components42.js.map +1 -1
- package/dist/fondue-components43.js +25 -7
- package/dist/fondue-components43.js.map +1 -1
- package/dist/fondue-components44.js +7 -8
- package/dist/fondue-components44.js.map +1 -1
- package/dist/fondue-components45.js +9 -41
- package/dist/fondue-components45.js.map +1 -1
- package/dist/fondue-components46.js +41 -5
- package/dist/fondue-components46.js.map +1 -1
- package/dist/fondue-components47.js +1 -1
- package/dist/fondue-components48.js +3 -11
- package/dist/fondue-components48.js.map +1 -1
- package/dist/fondue-components49.js +25 -29
- package/dist/fondue-components49.js.map +1 -1
- package/dist/fondue-components5.js +2 -2
- package/dist/fondue-components50.js +33 -54
- package/dist/fondue-components50.js.map +1 -1
- package/dist/fondue-components51.js +20 -130
- package/dist/fondue-components51.js.map +1 -1
- package/dist/fondue-components52.js +85 -20
- package/dist/fondue-components52.js.map +1 -1
- package/dist/fondue-components53.js +13 -53
- package/dist/fondue-components53.js.map +1 -1
- package/dist/fondue-components54.js +32 -8
- package/dist/fondue-components54.js.map +1 -1
- package/dist/fondue-components55.js +54 -13
- package/dist/fondue-components55.js.map +1 -1
- package/dist/fondue-components56.js +130 -16
- package/dist/fondue-components56.js.map +1 -1
- package/dist/fondue-components57.js +20 -4
- package/dist/fondue-components57.js.map +1 -1
- package/dist/fondue-components58.js +52 -17
- package/dist/fondue-components58.js.map +1 -1
- package/dist/fondue-components59.js +7 -18
- package/dist/fondue-components59.js.map +1 -1
- package/dist/fondue-components6.js +1 -1
- package/dist/fondue-components60.js +13 -44
- package/dist/fondue-components60.js.map +1 -1
- package/dist/fondue-components61.js +16 -24
- package/dist/fondue-components61.js.map +1 -1
- package/dist/fondue-components62.js +4 -22
- package/dist/fondue-components62.js.map +1 -1
- package/dist/fondue-components63.js +18 -7
- package/dist/fondue-components63.js.map +1 -1
- package/dist/fondue-components64.js +18 -4
- package/dist/fondue-components64.js.map +1 -1
- package/dist/fondue-components65.js +43 -12
- package/dist/fondue-components65.js.map +1 -1
- package/dist/fondue-components66.js +24 -4
- package/dist/fondue-components66.js.map +1 -1
- package/dist/fondue-components67.js +22 -17
- package/dist/fondue-components67.js.map +1 -1
- package/dist/fondue-components68.js +4 -8
- package/dist/fondue-components68.js.map +1 -1
- package/dist/fondue-components69.js +4 -36
- package/dist/fondue-components69.js.map +1 -1
- package/dist/fondue-components7.js +32 -65
- package/dist/fondue-components7.js.map +1 -1
- package/dist/fondue-components70.js +12 -6
- package/dist/fondue-components70.js.map +1 -1
- package/dist/fondue-components71.js +1 -1
- package/dist/fondue-components72.js +17 -12
- package/dist/fondue-components72.js.map +1 -1
- package/dist/fondue-components73.js +10 -51
- package/dist/fondue-components73.js.map +1 -1
- package/dist/fondue-components74.js +37 -44
- package/dist/fondue-components74.js.map +1 -1
- package/dist/fondue-components75.js +7 -6
- package/dist/fondue-components75.js.map +1 -1
- package/dist/fondue-components76.js +5 -6
- package/dist/fondue-components76.js.map +1 -1
- package/dist/fondue-components77.js +13 -13
- package/dist/fondue-components77.js.map +1 -1
- package/dist/fondue-components78.js +51 -27
- package/dist/fondue-components78.js.map +1 -1
- package/dist/fondue-components79.js +42 -11
- package/dist/fondue-components79.js.map +1 -1
- package/dist/fondue-components8.js +65 -51
- package/dist/fondue-components8.js.map +1 -1
- package/dist/fondue-components80.js +6 -5
- package/dist/fondue-components80.js.map +1 -1
- package/dist/fondue-components81.js +6 -13
- package/dist/fondue-components81.js.map +1 -1
- package/dist/fondue-components82.js +13 -48
- package/dist/fondue-components82.js.map +1 -1
- package/dist/fondue-components83.js +27 -22
- package/dist/fondue-components83.js.map +1 -1
- package/dist/fondue-components84.js +13 -629
- package/dist/fondue-components84.js.map +1 -1
- package/dist/fondue-components85.js +4 -8
- package/dist/fondue-components85.js.map +1 -1
- package/dist/fondue-components86.js +12 -12
- package/dist/fondue-components86.js.map +1 -1
- package/dist/fondue-components87.js +47 -4
- package/dist/fondue-components87.js.map +1 -1
- package/dist/fondue-components88.js +22 -24
- package/dist/fondue-components88.js.map +1 -1
- package/dist/fondue-components89.js +628 -16
- package/dist/fondue-components89.js.map +1 -1
- package/dist/fondue-components9.js +46 -173
- package/dist/fondue-components9.js.map +1 -1
- package/dist/fondue-components90.js +9 -20
- package/dist/fondue-components90.js.map +1 -1
- package/dist/fondue-components91.js +13 -20
- package/dist/fondue-components91.js.map +1 -1
- package/dist/fondue-components92.js +5 -20
- package/dist/fondue-components92.js.map +1 -1
- package/dist/fondue-components93.js +24 -19
- package/dist/fondue-components93.js.map +1 -1
- package/dist/fondue-components94.js +17 -19
- package/dist/fondue-components94.js.map +1 -1
- package/dist/fondue-components95.js +20 -8
- package/dist/fondue-components95.js.map +1 -1
- package/dist/fondue-components96.js +20 -11
- package/dist/fondue-components96.js.map +1 -1
- package/dist/fondue-components97.js +20 -11
- package/dist/fondue-components97.js.map +1 -1
- package/dist/fondue-components98.js +20 -7
- package/dist/fondue-components98.js.map +1 -1
- package/dist/fondue-components99.js +19 -13
- package/dist/fondue-components99.js.map +1 -1
- package/dist/index.d.ts +184 -18
- package/dist/style.css +1 -1
- package/package.json +6 -2
- package/dist/fondue-components139.js +0 -173
- package/dist/fondue-components139.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fondue-components166.js","sources":["../../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/de/_lib/localize.mjs"],"sourcesContent":["import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.mjs\";\n\nconst eraValues = {\n narrow: [\"v.Chr.\", \"n.Chr.\"],\n abbreviated: [\"v.Chr.\", \"n.Chr.\"],\n wide: [\"vor Christus\", \"nach Christus\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1. Quartal\", \"2. Quartal\", \"3. Quartal\", \"4. Quartal\"],\n};\n\n// Note: in German, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mär\",\n \"Apr\",\n \"Mai\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Okt\",\n \"Nov\",\n \"Dez\",\n ],\n\n wide: [\n \"Januar\",\n \"Februar\",\n \"März\",\n \"April\",\n \"Mai\",\n \"Juni\",\n \"Juli\",\n \"August\",\n \"September\",\n \"Oktober\",\n \"November\",\n \"Dezember\",\n ],\n};\n\n// https://st.unicode.org/cldr-apps/v#/de/Gregorian/\nconst formattingMonthValues = {\n narrow: monthValues.narrow,\n abbreviated: [\n \"Jan.\",\n \"Feb.\",\n \"März\",\n \"Apr.\",\n \"Mai\",\n \"Juni\",\n \"Juli\",\n \"Aug.\",\n \"Sep.\",\n \"Okt.\",\n \"Nov.\",\n \"Dez.\",\n ],\n\n wide: monthValues.wide,\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"D\", \"M\", \"D\", \"F\", \"S\"],\n short: [\"So\", \"Mo\", \"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\"],\n abbreviated: [\"So.\", \"Mo.\", \"Di.\", \"Mi.\", \"Do.\", \"Fr.\", \"Sa.\"],\n wide: [\n \"Sonntag\",\n \"Montag\",\n \"Dienstag\",\n \"Mittwoch\",\n \"Donnerstag\",\n \"Freitag\",\n \"Samstag\",\n ],\n};\n\n// https://www.unicode.org/cldr/charts/32/summary/de.html#1881\nconst dayPeriodValues = {\n narrow: {\n am: \"vm.\",\n pm: \"nm.\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"Morgen\",\n afternoon: \"Nachm.\",\n evening: \"Abend\",\n night: \"Nacht\",\n },\n abbreviated: {\n am: \"vorm.\",\n pm: \"nachm.\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"Morgen\",\n afternoon: \"Nachmittag\",\n evening: \"Abend\",\n night: \"Nacht\",\n },\n wide: {\n am: \"vormittags\",\n pm: \"nachmittags\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"Morgen\",\n afternoon: \"Nachmittag\",\n evening: \"Abend\",\n night: \"Nacht\",\n },\n};\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"vm.\",\n pm: \"nm.\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"morgens\",\n afternoon: \"nachm.\",\n evening: \"abends\",\n night: \"nachts\",\n },\n abbreviated: {\n am: \"vorm.\",\n pm: \"nachm.\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"morgens\",\n afternoon: \"nachmittags\",\n evening: \"abends\",\n night: \"nachts\",\n },\n wide: {\n am: \"vormittags\",\n pm: \"nachmittags\",\n midnight: \"Mitternacht\",\n noon: \"Mittag\",\n morning: \"morgens\",\n afternoon: \"nachmittags\",\n evening: \"abends\",\n night: \"nachts\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber) => {\n const number = Number(dirtyNumber);\n\n return number + \".\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n formattingValues: formattingMonthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n"],"names":["monthValues"],"mappings":"AAkBA,MAAMA,IAAc;AAAA,EAClB,QAAQ,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAAA,EAgBnE,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ;AACA;AAIUA,EAAY,QAgBdA,EAAY;","x_google_ignoreList":[0]}
|
|
@@ -1,49 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y } from "react";
|
|
3
|
+
import { propsToCssVariables as n } from "./fondue-components46.js";
|
|
4
|
+
import u from "./fondue-components71.js";
|
|
5
|
+
const c = y(
|
|
5
6
|
({
|
|
6
|
-
as:
|
|
7
|
+
as: a = "div",
|
|
8
|
+
"data-test-id": r = "fondue-grid",
|
|
7
9
|
children: i,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"aria-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"aria-label": f,
|
|
19
|
-
"aria-labelledby": u,
|
|
20
|
-
...h
|
|
21
|
-
}, y) => /* @__PURE__ */ c(
|
|
22
|
-
e,
|
|
10
|
+
role: e,
|
|
11
|
+
"aria-label": d,
|
|
12
|
+
"aria-hidden": s,
|
|
13
|
+
"aria-describedby": t,
|
|
14
|
+
"aria-labelledby": o,
|
|
15
|
+
"aria-expanded": p,
|
|
16
|
+
"aria-haspopup": l,
|
|
17
|
+
...b
|
|
18
|
+
}, m) => /* @__PURE__ */ f(
|
|
19
|
+
a,
|
|
23
20
|
{
|
|
24
|
-
className:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"aria-
|
|
33
|
-
"aria-
|
|
34
|
-
|
|
35
|
-
"aria-labelledby": u,
|
|
36
|
-
"aria-expanded": n,
|
|
37
|
-
"aria-haspopup": b,
|
|
38
|
-
"data-test-id": s,
|
|
39
|
-
ref: y,
|
|
40
|
-
...h,
|
|
21
|
+
className: u.root,
|
|
22
|
+
"data-test-id": r,
|
|
23
|
+
style: n(b, { justify: "justify-items" }),
|
|
24
|
+
role: e,
|
|
25
|
+
"aria-label": d,
|
|
26
|
+
"aria-hidden": s,
|
|
27
|
+
"aria-describedby": t,
|
|
28
|
+
"aria-labelledby": o,
|
|
29
|
+
"aria-expanded": p,
|
|
30
|
+
"aria-haspopup": l,
|
|
31
|
+
ref: m,
|
|
41
32
|
children: i
|
|
42
33
|
}
|
|
43
34
|
)
|
|
44
35
|
);
|
|
45
|
-
|
|
36
|
+
c.displayName = "Grid";
|
|
46
37
|
export {
|
|
47
|
-
|
|
38
|
+
c as Grid
|
|
48
39
|
};
|
|
49
40
|
//# sourceMappingURL=fondue-components17.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components17.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components17.js","sources":["../src/components/Grid/Grid.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\nimport { type Responsive, type SizeValue, type LayoutComponentProps } from '#/helpers/layout';\nimport { propsToCssVariables } from '#/helpers/propsToCssVariables';\n\nimport styles from './styles/grid.module.scss';\n\nexport type GridProps = LayoutComponentProps & {\n /**\n * The element to render the Grid component as.\n * @default 'div'\n */\n as?: 'div' | 'span';\n\n /**\n * The display property.\n * @default 'grid'\n */\n display?: 'none' | 'grid' | 'inline-grid';\n /**\n * The columns property.\n */\n columns?: Responsive<string | number>;\n /**\n * The rows property.\n */\n rows?: Responsive<string | number>;\n /**\n * The flow property.\n */\n flow?: Responsive<'row' | 'column' | 'dense' | 'row-dense' | 'column-dense'>;\n /**\n * The alignment of the children.\n */\n align?: Responsive<'start' | 'center' | 'end' | 'baseline' | 'stretch'>;\n /**\n * The justification of the children.\n */\n justify?: Responsive<'start' | 'center' | 'end' | 'between'>;\n /**\n * The gap between the children.\n */\n gap?: Responsive<SizeValue>;\n /**\n * The horizontal gap between the children.\n */\n gapX?: Responsive<SizeValue>;\n /**\n * The vertical gap between the children.\n */\n gapY?: Responsive<SizeValue>;\n\n children?: ReactNode;\n 'data-test-id'?: string;\n} & CommonAriaProps;\n\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n (\n {\n as: Component = 'div',\n 'data-test-id': dataTestId = 'fondue-grid',\n children,\n role,\n 'aria-label': ariaLabel,\n 'aria-hidden': ariaHidden,\n 'aria-describedby': ariaDescribedBy,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n ...props\n },\n ref,\n ) => {\n return (\n <Component\n className={styles.root}\n data-test-id={dataTestId}\n style={propsToCssVariables(props, { justify: 'justify-items' })}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n ref={ref}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = 'Grid';\n"],"names":["Grid","forwardRef","Component","dataTestId","children","role","ariaLabel","ariaHidden","ariaDescribedBy","ariaLabelledBy","ariaExpanded","ariaHasPopup","props","ref","jsx","styles","propsToCssVariables"],"mappings":";;;;AA2DO,MAAMA,IAAOC;AAAA,EAChB,CACI;AAAA,IACI,IAAIC,IAAY;AAAA,IAChB,gBAAgBC,IAAa;AAAA,IAC7B,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,cAAcC;AAAA,IACd,eAAeC;AAAA,IACf,oBAAoBC;AAAA,IACpB,mBAAmBC;AAAA,IACnB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,GAAGC;AAAA,EAAA,GAEPC,MAGI,gBAAAC;AAAA,IAACZ;AAAA,IAAA;AAAA,MACG,WAAWa,EAAO;AAAA,MAClB,gBAAcZ;AAAA,MACd,OAAOa,EAAoBJ,GAAO,EAAE,SAAS,iBAAiB;AAAA,MAC9D,MAAAP;AAAA,MACA,cAAYC;AAAA,MACZ,eAAaC;AAAA,MACb,oBAAkBC;AAAA,MAClB,mBAAiBC;AAAA,MACjB,iBAAeC;AAAA,MACf,iBAAeC;AAAA,MACf,KAAAE;AAAA,MAEC,UAAAT;AAAA,IAAA;AAAA,EAAA;AAIjB;AACAJ,EAAK,cAAc;"}
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import a from "./fondue-components72.js";
|
|
4
|
+
const x = g(
|
|
5
|
+
({
|
|
6
|
+
as: e = "span",
|
|
7
|
+
children: i,
|
|
8
|
+
className: r,
|
|
9
|
+
color: d = "default",
|
|
10
|
+
role: o,
|
|
11
|
+
size: l = "medium",
|
|
12
|
+
weight: t = "default",
|
|
13
|
+
"data-test-id": s = "fondue-heading",
|
|
14
|
+
"aria-describedby": p,
|
|
15
|
+
"aria-expanded": n,
|
|
16
|
+
"aria-haspopup": b,
|
|
17
|
+
"aria-hidden": m,
|
|
18
|
+
"aria-label": f,
|
|
19
|
+
"aria-labelledby": u,
|
|
20
|
+
...h
|
|
21
|
+
}, y) => /* @__PURE__ */ c(
|
|
22
|
+
e,
|
|
15
23
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
/* @__PURE__ */ l("span", { className: [a.visibleText, a.contentArea].filter(Boolean).join(" "), children: r })
|
|
37
|
-
]
|
|
24
|
+
className: [
|
|
25
|
+
a.root,
|
|
26
|
+
a[`size-${l}`],
|
|
27
|
+
a[`weight-${t}`],
|
|
28
|
+
a[`color-${d}`],
|
|
29
|
+
r
|
|
30
|
+
].filter(Boolean).join(" "),
|
|
31
|
+
role: o,
|
|
32
|
+
"aria-label": f,
|
|
33
|
+
"aria-hidden": m,
|
|
34
|
+
"aria-describedby": p,
|
|
35
|
+
"aria-labelledby": u,
|
|
36
|
+
"aria-expanded": n,
|
|
37
|
+
"aria-haspopup": b,
|
|
38
|
+
"data-test-id": s,
|
|
39
|
+
ref: y,
|
|
40
|
+
...h,
|
|
41
|
+
children: i
|
|
38
42
|
}
|
|
39
|
-
)
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
)
|
|
44
|
+
);
|
|
45
|
+
x.displayName = "Heading";
|
|
42
46
|
export {
|
|
43
|
-
|
|
44
|
-
A as LabelComponent
|
|
47
|
+
x as Heading
|
|
45
48
|
};
|
|
46
49
|
//# sourceMappingURL=fondue-components18.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components18.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components18.js","sources":["../src/components/Heading/Heading.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { type ElementType, type ForwardedRef, forwardRef, type ReactNode } from 'react';\n\nimport { type CommonAriaProps } from '#/helpers/aria';\n\nimport styles from './styles/heading.module.scss';\n\ntype HeadingWeight = 'default' | 'strong';\ntype HeadingSize = 'medium' | 'large' | 'x-large' | 'xx-large';\ntype HeadingColor = 'default' | 'weak' | 'x-weak' | 'disabled' | 'negative' | 'positive' | 'warning' | 'interactive';\n\ntype TagType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'p';\n\nexport type HeadingProps<TTag extends TagType = 'span'> = CommonAriaProps & {\n 'data-test-id'?: string;\n as?: TTag;\n children?: ReactNode;\n color?: HeadingColor;\n size?: HeadingSize;\n weight?: HeadingWeight;\n className?: string;\n};\n\ntype HeadingElementType<TTag extends TagType> = TTag extends 'span'\n ? HTMLSpanElement\n : TTag extends 'p'\n ? HTMLParagraphElement\n : HTMLHeadingElement;\n\nexport const Heading = forwardRef(\n (\n {\n as: Tag = 'span' as ElementType,\n children,\n className,\n color = 'default',\n role,\n size = 'medium',\n weight = 'default',\n 'data-test-id': dataTestId = 'fondue-heading',\n 'aria-describedby': ariaDescribedBy,\n 'aria-expanded': ariaExpanded,\n 'aria-haspopup': ariaHasPopup,\n 'aria-hidden': ariaHidden,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n ...props\n },\n ref,\n ) => {\n return (\n <Tag\n className={[\n styles.root,\n styles[`size-${size}`],\n styles[`weight-${weight}`],\n styles[`color-${color}`],\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n role={role}\n aria-label={ariaLabel}\n aria-hidden={ariaHidden}\n aria-describedby={ariaDescribedBy}\n aria-labelledby={ariaLabelledBy}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n data-test-id={dataTestId}\n ref={ref}\n {...props}\n >\n {children}\n </Tag>\n );\n },\n) as (<TTag extends TagType = 'span'>(\n props: HeadingProps<TTag> & { ref?: ForwardedRef<HeadingElementType<TTag>> },\n) => JSX.Element) & { displayName: string };\n\nHeading.displayName = 'Heading';\n"],"names":["Heading","forwardRef","Tag","children","className","color","role","size","weight","dataTestId","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaHidden","ariaLabel","ariaLabelledBy","props","ref","jsx","styles"],"mappings":";;;AA8BO,MAAMA,IAAUC;AAAA,EACnB,CACI;AAAA,IACI,IAAIC,IAAM;AAAA,IACV,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,QAAAC,IAAS;AAAA,IACT,gBAAgBC,IAAa;AAAA,IAC7B,oBAAoBC;AAAA,IACpB,iBAAiBC;AAAA,IACjB,iBAAiBC;AAAA,IACjB,eAAeC;AAAA,IACf,cAAcC;AAAA,IACd,mBAAmBC;AAAA,IACnB,GAAGC;AAAA,EAAA,GAEPC,MAGI,gBAAAC;AAAA,IAAChB;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACPiB,EAAO;AAAA,QACPA,EAAO,QAAQZ,CAAI,EAAE;AAAA,QACrBY,EAAO,UAAUX,CAAM,EAAE;AAAA,QACzBW,EAAO,SAASd,CAAK,EAAE;AAAA,QACvBD;AAAA,MAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,MACb,MAAAE;AAAA,MACA,cAAYQ;AAAA,MACZ,eAAaD;AAAA,MACb,oBAAkBH;AAAA,MAClB,mBAAiBK;AAAA,MACjB,iBAAeJ;AAAA,MACf,iBAAeC;AAAA,MACf,gBAAcH;AAAA,MACd,KAAAQ;AAAA,MACC,GAAGD;AAAA,MAEH,UAAAb;AAAA,IAAA;AAAA,EAAA;AAIjB;AAIAH,EAAQ,cAAc;"}
|
|
@@ -1,61 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
if (r) {
|
|
25
|
-
a.preventDefault();
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
e == null || e(a), t && (a.preventDefault(), l(t));
|
|
1
|
+
import { jsxs as c, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "@radix-ui/react-label";
|
|
3
|
+
import { forwardRef as b, useRef as p, useLayoutEffect as x } from "react";
|
|
4
|
+
import a from "./fondue-components73.js";
|
|
5
|
+
const A = ({ className: s, "data-test-id": d = "fondue-label", children: r, variant: f = "default", ...i }, u) => {
|
|
6
|
+
const n = p(null);
|
|
7
|
+
return x(() => {
|
|
8
|
+
var o;
|
|
9
|
+
const e = (o = n.current) == null ? void 0 : o.querySelectorAll("button,input,a,[tabindex]");
|
|
10
|
+
if (e)
|
|
11
|
+
for (const t of e)
|
|
12
|
+
t.setAttribute("tabindex", "-1"), t.setAttribute("id", ""), t.setAttribute("data-test-id", "");
|
|
13
|
+
}, []), /* @__PURE__ */ c(
|
|
14
|
+
m.Root,
|
|
15
|
+
{
|
|
16
|
+
ref: u,
|
|
17
|
+
"data-required": i.required,
|
|
18
|
+
"data-variant": f,
|
|
19
|
+
className: [a.root, s].filter(Boolean).join(" "),
|
|
20
|
+
"data-test-id": d,
|
|
21
|
+
onClick: (e) => {
|
|
22
|
+
const o = e.target.getAttribute("for"), t = o ? document.getElementById(o) : null;
|
|
23
|
+
t && t.getAttribute("role") === "combobox" && (e.preventDefault(), e.stopPropagation(), t.click());
|
|
29
24
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
href: r ? void 0 : g,
|
|
48
|
-
onClick: x,
|
|
49
|
-
"aria-disabled": r || void 0,
|
|
50
|
-
tabIndex: r ? -1 : void 0,
|
|
51
|
-
...s,
|
|
52
|
-
children: c
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
L.displayName = "Link";
|
|
25
|
+
...i,
|
|
26
|
+
children: [
|
|
27
|
+
/* @__PURE__ */ l(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
className: [a.hiddenText, a.contentArea].filter(Boolean).join(" "),
|
|
31
|
+
"aria-hidden": "true",
|
|
32
|
+
ref: n,
|
|
33
|
+
children: r
|
|
34
|
+
}
|
|
35
|
+
),
|
|
36
|
+
/* @__PURE__ */ l("span", { className: [a.visibleText, a.contentArea].filter(Boolean).join(" "), children: r })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}, g = b(A);
|
|
41
|
+
g.displayName = "Label";
|
|
58
42
|
export {
|
|
59
|
-
|
|
43
|
+
g as Label,
|
|
44
|
+
A as LabelComponent
|
|
60
45
|
};
|
|
61
46
|
//# sourceMappingURL=fondue-components19.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components19.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components19.js","sources":["../src/components/Label/Label.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport * as LabelPrimitive from '@radix-ui/react-label';\nimport { type ForwardedRef, forwardRef, type MouseEventHandler, type ReactNode, useRef, useLayoutEffect } from 'react';\n\nimport styles from './styles/label.module.scss';\n\ntype LabelVariant = 'default' | 'strong';\n\nexport type LabelProps = {\n id?: string;\n children: ReactNode;\n /**\n * The id of the input element the label is associated with\n */\n htmlFor: string;\n /**\n * Add an asterisk to the label to indicate it is required\n * @default false\n */\n required?: boolean;\n /**\n * The variant of the label\n * @default \"default\"\n */\n variant?: LabelVariant;\n className?: string;\n onClick?: MouseEventHandler<HTMLLabelElement>;\n 'data-test-id'?: string;\n};\n\nexport const LabelComponent = (\n { className, 'data-test-id': dataTestId = 'fondue-label', children, variant = 'default', ...props }: LabelProps,\n ref: ForwardedRef<HTMLLabelElement>,\n) => {\n const hiddenTextRef = useRef<HTMLSpanElement>(null);\n\n useLayoutEffect(() => {\n // prevent duplicated interactive elements within the hidden element\n const interactiveElements = hiddenTextRef.current?.querySelectorAll('button,input,a,[tabindex]');\n if (interactiveElements) {\n for (const element of interactiveElements) {\n element.setAttribute('tabindex', '-1');\n element.setAttribute('id', '');\n element.setAttribute('data-test-id', '');\n }\n }\n }, []);\n\n return (\n <LabelPrimitive.Root\n ref={ref}\n data-required={props.required}\n data-variant={variant}\n className={[styles.root, className].filter(Boolean).join(' ')}\n data-test-id={dataTestId}\n onClick={(event) => {\n // Add support of Select component, Radix only allows native `select`\n // but we use `div[role=combobox]` because of downshift\n // https://github.com/radix-ui/primitives/blob/6e75e117977c9e6ffa939e6951a707f16ba0f95e/packages/react/label/src/label.tsx#L22\n const targetId = (event.target as HTMLElement).getAttribute('for');\n const target = targetId ? document.getElementById(targetId) : null;\n\n if (target && target.getAttribute('role') === 'combobox') {\n event.preventDefault();\n event.stopPropagation();\n target.click();\n }\n }}\n {...props}\n >\n {/* Hidden version with medium font weight to reserve space */}\n <span\n className={[styles.hiddenText, styles.contentArea].filter(Boolean).join(' ')}\n aria-hidden=\"true\"\n ref={hiddenTextRef}\n >\n {children}\n </span>\n {/* Visible version (inherits all styling from parent) */}\n <span className={[styles.visibleText, styles.contentArea].filter(Boolean).join(' ')}>{children}</span>\n </LabelPrimitive.Root>\n );\n};\n\nexport const Label = forwardRef<HTMLLabelElement, LabelProps>(LabelComponent);\nLabel.displayName = 'Label';\n"],"names":["LabelComponent","className","dataTestId","children","variant","props","ref","hiddenTextRef","useRef","useLayoutEffect","interactiveElements","_a","element","jsxs","LabelPrimitive","styles","event","targetId","target","jsx","Label","forwardRef"],"mappings":";;;;AA+BO,MAAMA,IAAiB,CAC1B,EAAE,WAAAC,GAAW,gBAAgBC,IAAa,gBAAgB,UAAAC,GAAU,SAAAC,IAAU,WAAW,GAAGC,EAAA,GAC5FC,MACC;AACD,QAAMC,IAAgBC,EAAwB,IAAI;AAElD,SAAAC,EAAgB,MAAM;;AAElB,UAAMC,KAAsBC,IAAAJ,EAAc,YAAd,gBAAAI,EAAuB,iBAAiB;AACpE,QAAID;AACA,iBAAWE,KAAWF;AAClB,QAAAE,EAAQ,aAAa,YAAY,IAAI,GACrCA,EAAQ,aAAa,MAAM,EAAE,GAC7BA,EAAQ,aAAa,gBAAgB,EAAE;AAAA,EAGnD,GAAG,CAAA,CAAE,GAGD,gBAAAC;AAAA,IAACC,EAAe;AAAA,IAAf;AAAA,MACG,KAAAR;AAAA,MACA,iBAAeD,EAAM;AAAA,MACrB,gBAAcD;AAAA,MACd,WAAW,CAACW,EAAO,MAAMd,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAC5D,gBAAcC;AAAA,MACd,SAAS,CAACc,MAAU;AAIhB,cAAMC,IAAYD,EAAM,OAAuB,aAAa,KAAK,GAC3DE,IAASD,IAAW,SAAS,eAAeA,CAAQ,IAAI;AAE9D,QAAIC,KAAUA,EAAO,aAAa,MAAM,MAAM,eAC1CF,EAAM,eAAA,GACNA,EAAM,gBAAA,GACNE,EAAO,MAAA;AAAA,MAEf;AAAA,MACC,GAAGb;AAAA,MAGJ,UAAA;AAAA,QAAA,gBAAAc;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,WAAW,CAACJ,EAAO,YAAYA,EAAO,WAAW,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,YAC3E,eAAY;AAAA,YACZ,KAAKR;AAAA,YAEJ,UAAAJ;AAAA,UAAA;AAAA,QAAA;AAAA,QAGL,gBAAAgB,EAAC,QAAA,EAAK,WAAW,CAACJ,EAAO,aAAaA,EAAO,WAAW,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GAAI,UAAAZ,EAAA,CAAS;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG3G,GAEaiB,IAAQC,EAAyCrB,CAAc;AAC5EoB,EAAM,cAAc;"}
|
|
@@ -1,47 +1,61 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as j, useCallback as D } from "react";
|
|
3
|
+
import { useFondueRouter as H } from "./fondue-components26.js";
|
|
4
|
+
import o from "./fondue-components74.js";
|
|
5
|
+
const L = j(
|
|
6
6
|
({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"--loading-bar-value": a,
|
|
28
|
-
"--loading-bar-max": r,
|
|
29
|
-
"--loading-bar-proportion": "calc(var(--loading-bar-value) / var(--loading-bar-max))"
|
|
30
|
-
},
|
|
31
|
-
...l,
|
|
32
|
-
children: /* @__PURE__ */ t(
|
|
33
|
-
o.Indicator,
|
|
34
|
-
{
|
|
35
|
-
className: d.indicator,
|
|
36
|
-
"data-variant": i,
|
|
37
|
-
"data-indeterminate": a === null
|
|
7
|
+
id: n,
|
|
8
|
+
className: u,
|
|
9
|
+
children: c,
|
|
10
|
+
size: m = "medium",
|
|
11
|
+
weight: f = "regular",
|
|
12
|
+
truncate: p = !1,
|
|
13
|
+
wrap: d = "nowrap",
|
|
14
|
+
underline: $ = "auto",
|
|
15
|
+
color: k = "primary",
|
|
16
|
+
href: t,
|
|
17
|
+
onContainer: i,
|
|
18
|
+
onPress: e,
|
|
19
|
+
disabled: r = !1,
|
|
20
|
+
...s
|
|
21
|
+
}, v) => {
|
|
22
|
+
const { navigate: l, useHref: w } = H(), g = w(t), x = D(
|
|
23
|
+
(a) => {
|
|
24
|
+
if (r) {
|
|
25
|
+
a.preventDefault();
|
|
26
|
+
return;
|
|
38
27
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
e == null || e(a), t && (a.preventDefault(), l(t));
|
|
29
|
+
},
|
|
30
|
+
[t, l, e, r]
|
|
31
|
+
), y = r ? o.disabled : o[i ? `color-on-container-${i}` : `color-${k}`];
|
|
32
|
+
return /* @__PURE__ */ C(
|
|
33
|
+
"a",
|
|
34
|
+
{
|
|
35
|
+
id: n,
|
|
36
|
+
className: [
|
|
37
|
+
o.root,
|
|
38
|
+
o[`size-${m}`],
|
|
39
|
+
o[`weight-${f}`],
|
|
40
|
+
o[`wrap-${d}`],
|
|
41
|
+
o[`underline-${$}`],
|
|
42
|
+
p && o.truncate,
|
|
43
|
+
y,
|
|
44
|
+
u
|
|
45
|
+
].filter(Boolean).join(" "),
|
|
46
|
+
ref: v,
|
|
47
|
+
href: r ? void 0 : g,
|
|
48
|
+
onClick: x,
|
|
49
|
+
"aria-disabled": r || void 0,
|
|
50
|
+
tabIndex: r ? -1 : void 0,
|
|
51
|
+
...s,
|
|
52
|
+
children: c
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
}
|
|
42
56
|
);
|
|
43
|
-
|
|
57
|
+
L.displayName = "Link";
|
|
44
58
|
export {
|
|
45
|
-
|
|
59
|
+
L as Link
|
|
46
60
|
};
|
|
47
61
|
//# sourceMappingURL=fondue-components20.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fondue-components20.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"fondue-components20.js","sources":["../src/components/Link/Link.tsx"],"sourcesContent":["/* (c) Copyright Frontify Ltd., all rights reserved. */\n\nimport { forwardRef, type ReactNode, type MouseEvent, useCallback } from 'react';\n\nimport { useFondueRouter } from '../RouterProvider/RouterProvider';\n\nimport styles from './styles/link.module.scss';\n\ntype LinkSize = 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large';\ntype LinkWeight = 'regular' | 'medium' | 'bold';\ntype LinkColor = 'primary' | 'secondary' | 'error' | 'success' | 'warning' | 'highlight';\ntype LinkOnContainerColor = 'secondary' | 'disabled' | 'error' | 'success' | 'warning' | 'highlight';\ntype LinkWrap = 'wrap' | 'nowrap';\ntype LinkUnderline = 'auto' | 'always' | 'hover' | 'none';\n\nexport type LinkProps = {\n children?: ReactNode;\n /**\n * The link to navigate to when clicked\n */\n href: string;\n /**\n * Id of the element\n */\n id?: string;\n /**\n * Size of the text\n *\n * @default 'medium'\n */\n size?: LinkSize;\n /**\n * Weight of the font\n *\n * @default 'regular'\n */\n weight?: LinkWeight;\n /**\n * Color of the text\n *\n * @default 'primary'\n */\n color?: LinkColor;\n /**\n * The texts color when used within a container\n *\n * @description optional color prop that uses the inverse container color when accessibility contrast is needed\n **/\n onContainer?: LinkOnContainerColor;\n /**\n * Truncate the text if it overflows\n */\n truncate?: boolean;\n /**\n * Wrap the text if it overflows\n * @default 'nowrap'\n */\n wrap?: LinkWrap;\n /**\n * Underline behavior of the link\n * @default 'auto'\n */\n underline?: LinkUnderline;\n /**\n * The target attribute for the link\n * @default '_self'\n */\n target?: string;\n /**\n * The rel attribute for the link\n * @default 'noopener noreferrer'\n */\n rel?: string;\n className?: string;\n onPress?: (event: MouseEvent<HTMLAnchorElement>) => void;\n 'data-test-id'?: string;\n /**\n * Aria label for the component.\n */\n 'aria-label'?: string;\n /**\n * Aria labelled by for the component.\n */\n 'aria-labelledby'?: string;\n /**\n * Aria described by for the component.\n */\n 'aria-describedby'?: string;\n /**\n * Aria details for extend description of the component.\n */\n 'aria-details'?: string;\n /**\n * Disable the link\n *\n * @default false\n */\n disabled?: boolean;\n};\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n id,\n className,\n children,\n size = 'medium',\n weight = 'regular',\n truncate = false,\n wrap = 'nowrap',\n underline = 'auto',\n color = 'primary',\n href,\n onContainer,\n onPress,\n disabled = false,\n ...props\n },\n ref,\n ) => {\n const { navigate, useHref } = useFondueRouter();\n const resolvedHref = useHref(href);\n\n const handleClick = useCallback(\n (event: MouseEvent<HTMLAnchorElement>) => {\n if (disabled) {\n event.preventDefault();\n return;\n }\n onPress?.(event);\n\n if (href) {\n event.preventDefault();\n navigate(href);\n }\n },\n [href, navigate, onPress, disabled],\n );\n\n const computedColor = disabled\n ? styles.disabled\n : styles[onContainer ? `color-on-container-${onContainer}` : `color-${color}`];\n\n return (\n <a\n id={id}\n className={[\n styles.root,\n styles[`size-${size}`],\n styles[`weight-${weight}`],\n styles[`wrap-${wrap}`],\n styles[`underline-${underline}`],\n truncate && styles.truncate,\n computedColor,\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n ref={ref}\n href={disabled ? undefined : resolvedHref}\n onClick={handleClick}\n aria-disabled={disabled || undefined}\n tabIndex={disabled ? -1 : undefined}\n {...props}\n >\n {children}\n </a>\n );\n },\n);\nLink.displayName = 'Link';\n"],"names":["Link","forwardRef","id","className","children","size","weight","truncate","wrap","underline","color","href","onContainer","onPress","disabled","props","ref","navigate","useHref","useFondueRouter","resolvedHref","handleClick","useCallback","event","computedColor","styles","jsx"],"mappings":";;;;AAoGO,MAAMA,IAAOC;AAAA,EAChB,CACI;AAAA,IACI,IAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,QAAAC,IAAS;AAAA,IACT,UAAAC,IAAW;AAAA,IACX,MAAAC,IAAO;AAAA,IACP,WAAAC,IAAY;AAAA,IACZ,OAAAC,IAAQ;AAAA,IACR,MAAAC;AAAA,IACA,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,GAAGC;AAAA,EAAA,GAEPC,MACC;AACD,UAAM,EAAE,UAAAC,GAAU,SAAAC,EAAA,IAAYC,EAAA,GACxBC,IAAeF,EAAQP,CAAI,GAE3BU,IAAcC;AAAA,MAChB,CAACC,MAAyC;AACtC,YAAIT,GAAU;AACV,UAAAS,EAAM,eAAA;AACN;AAAA,QACJ;AACA,QAAAV,KAAA,QAAAA,EAAUU,IAENZ,MACAY,EAAM,eAAA,GACNN,EAASN,CAAI;AAAA,MAErB;AAAA,MACA,CAACA,GAAMM,GAAUJ,GAASC,CAAQ;AAAA,IAAA,GAGhCU,IAAgBV,IAChBW,EAAO,WACPA,EAAOb,IAAc,sBAAsBA,CAAW,KAAK,SAASF,CAAK,EAAE;AAEjF,WACI,gBAAAgB;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,IAAAxB;AAAA,QACA,WAAW;AAAA,UACPuB,EAAO;AAAA,UACPA,EAAO,QAAQpB,CAAI,EAAE;AAAA,UACrBoB,EAAO,UAAUnB,CAAM,EAAE;AAAA,UACzBmB,EAAO,QAAQjB,CAAI,EAAE;AAAA,UACrBiB,EAAO,aAAahB,CAAS,EAAE;AAAA,UAC/BF,KAAYkB,EAAO;AAAA,UACnBD;AAAA,UACArB;AAAA,QAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QACb,KAAAa;AAAA,QACA,MAAMF,IAAW,SAAYM;AAAA,QAC7B,SAASC;AAAA,QACT,iBAAeP,KAAY;AAAA,QAC3B,UAAUA,IAAW,KAAK;AAAA,QACzB,GAAGC;AAAA,QAEH,UAAAX;AAAA,MAAA;AAAA,IAAA;AAAA,EAGb;AACJ;AACAJ,EAAK,cAAc;"}
|
|
@@ -1,24 +1,47 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import * as o from "@radix-ui/react-progress";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import d from "./fondue-components75.js";
|
|
5
|
+
const g = c(
|
|
5
6
|
({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
7
|
+
value: a,
|
|
8
|
+
max: r = 100,
|
|
9
|
+
rounded: e = !0,
|
|
10
|
+
variant: i = "default",
|
|
11
|
+
size: n = "medium",
|
|
12
|
+
"data-test-id": s = "fondue-loading-bar",
|
|
13
|
+
...l
|
|
14
|
+
}, m) => /* @__PURE__ */ t(
|
|
15
|
+
o.Root,
|
|
11
16
|
{
|
|
12
|
-
ref:
|
|
13
|
-
"data-test-id":
|
|
14
|
-
|
|
15
|
-
"data-
|
|
16
|
-
|
|
17
|
+
ref: m,
|
|
18
|
+
"data-test-id": s,
|
|
19
|
+
className: d.container,
|
|
20
|
+
"data-rounded": e,
|
|
21
|
+
"data-size": n,
|
|
22
|
+
"data-variant": i,
|
|
23
|
+
"aria-busy": a !== r,
|
|
24
|
+
value: a,
|
|
25
|
+
max: r,
|
|
26
|
+
style: {
|
|
27
|
+
"--loading-bar-value": a,
|
|
28
|
+
"--loading-bar-max": r,
|
|
29
|
+
"--loading-bar-proportion": "calc(var(--loading-bar-value) / var(--loading-bar-max))"
|
|
30
|
+
},
|
|
31
|
+
...l,
|
|
32
|
+
children: /* @__PURE__ */ t(
|
|
33
|
+
o.Indicator,
|
|
34
|
+
{
|
|
35
|
+
className: d.indicator,
|
|
36
|
+
"data-variant": i,
|
|
37
|
+
"data-indeterminate": a === null
|
|
38
|
+
}
|
|
39
|
+
)
|
|
17
40
|
}
|
|
18
41
|
)
|
|
19
42
|
);
|
|
20
|
-
|
|
43
|
+
g.displayName = "LoadingBar";
|
|
21
44
|
export {
|
|
22
|
-
|
|
45
|
+
g as LoadingBar
|
|
23
46
|
};
|
|
24
47
|
//# sourceMappingURL=fondue-components21.js.map
|