@treeal/ds 0.1.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.
Files changed (143) hide show
  1. package/README.md +48 -0
  2. package/dist/assets/style.css +1 -0
  3. package/dist/components/Alert/Alert.d.ts +19 -0
  4. package/dist/components/Alert/Alert.d.ts.map +1 -0
  5. package/dist/components/Alert/index.d.ts +3 -0
  6. package/dist/components/Alert/index.d.ts.map +1 -0
  7. package/dist/components/BaseCheckRadio/BaseCheckRadio.d.ts +14 -0
  8. package/dist/components/BaseCheckRadio/BaseCheckRadio.d.ts.map +1 -0
  9. package/dist/components/BaseCheckRadio/index.d.ts +3 -0
  10. package/dist/components/BaseCheckRadio/index.d.ts.map +1 -0
  11. package/dist/components/Button/Button.d.ts +21 -0
  12. package/dist/components/Button/Button.d.ts.map +1 -0
  13. package/dist/components/Button/index.d.ts +3 -0
  14. package/dist/components/Button/index.d.ts.map +1 -0
  15. package/dist/components/Header/Header.d.ts +28 -0
  16. package/dist/components/Header/Header.d.ts.map +1 -0
  17. package/dist/components/Header/index.d.ts +3 -0
  18. package/dist/components/Header/index.d.ts.map +1 -0
  19. package/dist/components/Input/Input.d.ts +21 -0
  20. package/dist/components/Input/Input.d.ts.map +1 -0
  21. package/dist/components/Input/index.d.ts +3 -0
  22. package/dist/components/Input/index.d.ts.map +1 -0
  23. package/dist/components/Modal/Modal.d.ts +17 -0
  24. package/dist/components/Modal/Modal.d.ts.map +1 -0
  25. package/dist/components/Modal/index.d.ts +3 -0
  26. package/dist/components/Modal/index.d.ts.map +1 -0
  27. package/dist/components/Nav/Nav.d.ts +48 -0
  28. package/dist/components/Nav/Nav.d.ts.map +1 -0
  29. package/dist/components/Nav/index.d.ts +3 -0
  30. package/dist/components/Nav/index.d.ts.map +1 -0
  31. package/dist/components/Pagination/Pagination.d.ts +14 -0
  32. package/dist/components/Pagination/Pagination.d.ts.map +1 -0
  33. package/dist/components/Pagination/index.d.ts +3 -0
  34. package/dist/components/Pagination/index.d.ts.map +1 -0
  35. package/dist/components/Steps/Steps.d.ts +14 -0
  36. package/dist/components/Steps/Steps.d.ts.map +1 -0
  37. package/dist/components/Steps/index.d.ts +3 -0
  38. package/dist/components/Steps/index.d.ts.map +1 -0
  39. package/dist/components/Upload/Upload.d.ts +33 -0
  40. package/dist/components/Upload/Upload.d.ts.map +1 -0
  41. package/dist/components/Upload/index.d.ts +3 -0
  42. package/dist/components/Upload/index.d.ts.map +1 -0
  43. package/dist/components/index.d.ts +25 -0
  44. package/dist/components/index.d.ts.map +1 -0
  45. package/dist/index.cjs.js +2 -0
  46. package/dist/index.cjs.js.map +1 -0
  47. package/dist/index.cjs10.js +2 -0
  48. package/dist/index.cjs10.js.map +1 -0
  49. package/dist/index.cjs11.js +2 -0
  50. package/dist/index.cjs11.js.map +1 -0
  51. package/dist/index.cjs12.js +2 -0
  52. package/dist/index.cjs12.js.map +1 -0
  53. package/dist/index.cjs13.js +2 -0
  54. package/dist/index.cjs13.js.map +1 -0
  55. package/dist/index.cjs14.js +2 -0
  56. package/dist/index.cjs14.js.map +1 -0
  57. package/dist/index.cjs15.js +2 -0
  58. package/dist/index.cjs15.js.map +1 -0
  59. package/dist/index.cjs16.js +2 -0
  60. package/dist/index.cjs16.js.map +1 -0
  61. package/dist/index.cjs17.js +2 -0
  62. package/dist/index.cjs17.js.map +1 -0
  63. package/dist/index.cjs18.js +2 -0
  64. package/dist/index.cjs18.js.map +1 -0
  65. package/dist/index.cjs19.js +2 -0
  66. package/dist/index.cjs19.js.map +1 -0
  67. package/dist/index.cjs2.js +2 -0
  68. package/dist/index.cjs2.js.map +1 -0
  69. package/dist/index.cjs20.js +2 -0
  70. package/dist/index.cjs20.js.map +1 -0
  71. package/dist/index.cjs21.js +2 -0
  72. package/dist/index.cjs21.js.map +1 -0
  73. package/dist/index.cjs22.js +2 -0
  74. package/dist/index.cjs22.js.map +1 -0
  75. package/dist/index.cjs23.js +2 -0
  76. package/dist/index.cjs23.js.map +1 -0
  77. package/dist/index.cjs3.js +2 -0
  78. package/dist/index.cjs3.js.map +1 -0
  79. package/dist/index.cjs4.js +2 -0
  80. package/dist/index.cjs4.js.map +1 -0
  81. package/dist/index.cjs5.js +2 -0
  82. package/dist/index.cjs5.js.map +1 -0
  83. package/dist/index.cjs6.js +2 -0
  84. package/dist/index.cjs6.js.map +1 -0
  85. package/dist/index.cjs7.js +2 -0
  86. package/dist/index.cjs7.js.map +1 -0
  87. package/dist/index.cjs8.js +2 -0
  88. package/dist/index.cjs8.js.map +1 -0
  89. package/dist/index.cjs9.js +2 -0
  90. package/dist/index.cjs9.js.map +1 -0
  91. package/dist/index.esm.js +27 -0
  92. package/dist/index.esm.js.map +1 -0
  93. package/dist/index.esm10.js +238 -0
  94. package/dist/index.esm10.js.map +1 -0
  95. package/dist/index.esm11.js +177 -0
  96. package/dist/index.esm11.js.map +1 -0
  97. package/dist/index.esm12.js +93 -0
  98. package/dist/index.esm12.js.map +1 -0
  99. package/dist/index.esm13.js +222 -0
  100. package/dist/index.esm13.js.map +1 -0
  101. package/dist/index.esm14.js +26 -0
  102. package/dist/index.esm14.js.map +1 -0
  103. package/dist/index.esm15.js +34 -0
  104. package/dist/index.esm15.js.map +1 -0
  105. package/dist/index.esm16.js +64 -0
  106. package/dist/index.esm16.js.map +1 -0
  107. package/dist/index.esm17.js +64 -0
  108. package/dist/index.esm17.js.map +1 -0
  109. package/dist/index.esm18.js +42 -0
  110. package/dist/index.esm18.js.map +1 -0
  111. package/dist/index.esm19.js +26 -0
  112. package/dist/index.esm19.js.map +1 -0
  113. package/dist/index.esm2.js +98 -0
  114. package/dist/index.esm2.js.map +1 -0
  115. package/dist/index.esm20.js +24 -0
  116. package/dist/index.esm20.js.map +1 -0
  117. package/dist/index.esm21.js +52 -0
  118. package/dist/index.esm21.js.map +1 -0
  119. package/dist/index.esm22.js +26 -0
  120. package/dist/index.esm22.js.map +1 -0
  121. package/dist/index.esm23.js +106 -0
  122. package/dist/index.esm23.js.map +1 -0
  123. package/dist/index.esm3.js +62 -0
  124. package/dist/index.esm3.js.map +1 -0
  125. package/dist/index.esm4.js +115 -0
  126. package/dist/index.esm4.js.map +1 -0
  127. package/dist/index.esm5.js +69 -0
  128. package/dist/index.esm5.js.map +1 -0
  129. package/dist/index.esm6.js +37 -0
  130. package/dist/index.esm6.js.map +1 -0
  131. package/dist/index.esm7.js +182 -0
  132. package/dist/index.esm7.js.map +1 -0
  133. package/dist/index.esm8.js +69 -0
  134. package/dist/index.esm8.js.map +1 -0
  135. package/dist/index.esm9.js +78 -0
  136. package/dist/index.esm9.js.map +1 -0
  137. package/dist/tokens/colors.d.ts +122 -0
  138. package/dist/tokens/colors.d.ts.map +1 -0
  139. package/dist/tokens/index.d.ts +5 -0
  140. package/dist/tokens/index.d.ts.map +1 -0
  141. package/dist/tokens/typography.d.ts +66 -0
  142. package/dist/tokens/typography.d.ts.map +1 -0
  143. package/package.json +55 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm2.js","sources":["../tokens/colors.ts"],"sourcesContent":["/**\n * Color tokens — extracted directly from Figma (VekfomfsZU4q2iaY1j4VXP)\n * Nodes: BtnsBase (3107:5509), TextField (3105:3885), BaseCheckRadio (3106:4752),\n * FileUpload (3210:3538), Pagination (3203:662), NavPrimary (3554:548),\n * Modal (5139:1464), AlertSticky (3114:1706)\n */\n\nexport const colors = {\n brand: {\n primary: {\n /** #203224 — Secondary button bg; Fill button text; Check/Radio checked bg */\n base: '#203224',\n },\n secondary: {\n /** #0F6C13 — Outline button border & text */\n base: '#0F6C13',\n },\n tertiary: {\n /** #E7DA10 — Fill button background */\n base: '#E7DA10',\n },\n },\n default: {\n /** #FFFFFF — Secondary button text; input background */\n white: '#FFFFFF',\n /** #524E69 — Disabled text; input active/error text */\n textDark: '#524E69',\n /** #9490AC — Placeholder; input hover/active border; Grayscale/600 */\n textMedium: '#9490AC',\n /** #EFEEF2 — Disabled background; input focus ring; Grayscale/100 */\n disabled: '#EFEEF2',\n /** #DCE5DE — Default input border; Check/Radio border */\n border: '#DCE5DE',\n /** #E0DEED — Grayscale/200 · Default step background */\n stepDefault: '#E0DEED',\n /** #F5F5F5 — Default Colors/White Cloud · Nav sidebar background */\n whiteCloud: '#F5F5F5',\n /** #E0DEED — Grayscale/200 · Modal slot border */\n modalBorder: '#E0DEED',\n /** #757094 — Default Colors/Text medium · Modal slot text, option labels */\n modalTextMedium: '#757094',\n },\n message: {\n info: {\n /** #2472BA — Text button text */\n base: '#2472BA',\n },\n danger: {\n /** #FF3A29 — Error input border & message */\n base: '#FF3A29',\n },\n },\n /** Gray scale — FileUpload / Gray/x00 tokens */\n gray: {\n /** #101828 — Gray/900 · file name, body text */\n 900: '#101828',\n /** #475467 — Gray/600 · action icon color */\n 600: '#475467',\n /** #667085 — Gray/500 · file size, muted text */\n 500: '#667085',\n /** #D0D5DD — Gray/300 · upload drop-zone default border */\n 300: '#D0D5DD',\n /** #EAECF0 — Gray/200 · file item border, progress track */\n 200: '#EAECF0',\n },\n /** Pagination tokens — Pagination (3203:662) */\n pagination: {\n /** #0F6C13 — active item bg (= brand.secondary.base) */\n active: '#0F6C13',\n /** #CED4DA — Gray/Gray 4 · inactive item border, control border */\n border: '#CED4DA',\n /** #101113 — Dark/Dark 9 · page number text */\n text: '#101113',\n },\n /** Alert tokens — AlertSticky (3114:1706) */\n alert: {\n default: { bg: '#F9F8FC', border: '#DCE5DE', title: '#524E69' },\n info: { bg: '#F4F9FF', border: '#C9E2FE', title: '#2472BA' },\n success: { bg: '#F5FBF7', border: '#CAE7D5', title: '#2C7D56' },\n warning: { bg: '#FFF9E9', border: '#FFDB90', title: '#A36A00' },\n error: { bg: '#FFF8F6', border: '#FFCABF', title: '#DE0000' },\n },\n /** Shadow tokens */\n shadow: {\n /** 0px 1px 12px 0px rgba(25,27,35,0.15) — BS-Popper */\n popper: '0px 1px 12px 0px rgba(25,27,35,0.15)',\n },\n /** Blue primary scale — FileUpload / Primary/x00 tokens */\n primary: {\n /** #154FEF — Primary/600 · \"browse\" link color */\n 600: '#154FEF',\n /** #2970FF — Primary/500 · active drop-zone border, progress fill */\n 500: '#2970FF',\n /** #5280FF — Primary/400 */\n 400: '#5280FF',\n /** #B2C9FF — Primary/200 · file badge background */\n 200: '#B2C9FF',\n /** #DBE8FF — Primary/100 · file badge ring, active drop-zone bg */\n 100: '#DBE8FF',\n },\n} as const;\n\nexport type Colors = typeof colors;\n"],"names":["colors"],"mappings":"AAOO,MAAMA,IAAS;AAAA,EACpB,OAAO;AAAA,IACL,SAAS;AAAA;AAAA,MAEP,MAAM;AAAA,IAAA;AAAA,IAER,WAAW;AAAA;AAAA,MAET,MAAM;AAAA,IAAA;AAAA,IAER,UAAU;AAAA;AAAA,MAER,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,SAAS;AAAA;AAAA,IAEP,OAAO;AAAA;AAAA,IAEP,UAAU;AAAA;AAAA,IAEV,YAAY;AAAA;AAAA,IAEZ,UAAU;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,aAAa;AAAA;AAAA,IAEb,YAAY;AAAA;AAAA,IAEZ,aAAa;AAAA;AAAA,IAEb,iBAAiB;AAAA,EAAA;AAAA,EAEnB,SAAS;AAAA,IACP,MAAM;AAAA;AAAA,MAEJ,MAAM;AAAA,IAAA;AAAA,IAER,QAAQ;AAAA;AAAA,MAEN,MAAM;AAAA,IAAA;AAAA,EACR;AAAA;AAAA,EAGF,MAAM;AAAA;AAAA,IAEJ,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA,EAAA;AAAA;AAAA,EAGP,YAAY;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,QAAQ;AAAA;AAAA,IAER,MAAM;AAAA,EAAA;AAAA;AAAA,EAGR,OAAO;AAAA,IACL,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,MAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,SAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,IACpD,OAAS,EAAE,IAAI,WAAW,QAAQ,WAAW,OAAO,UAAA;AAAA,EAAU;AAAA;AAAA,EAGhE,QAAQ;AAAA;AAAA,IAEN,QAAQ;AAAA,EAAA;AAAA;AAAA,EAGV,SAAS;AAAA;AAAA,IAEP,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,KAAK;AAAA,EAAA;AAET;"}
@@ -0,0 +1,24 @@
1
+ const o = "_pagination_olot7_11", t = "_item_olot7_20", _ = "_xs_olot7_55", n = "_md_olot7_63", c = "_lg_olot7_71", s = "_active_olot7_81", i = "_inactive_olot7_88", l = "_dots_olot7_102", a = "_control_olot7_110", e = {
2
+ pagination: o,
3
+ item: t,
4
+ xs: _,
5
+ md: n,
6
+ lg: c,
7
+ active: s,
8
+ inactive: i,
9
+ dots: l,
10
+ control: a
11
+ };
12
+ export {
13
+ s as active,
14
+ a as control,
15
+ e as default,
16
+ l as dots,
17
+ i as inactive,
18
+ t as item,
19
+ c as lg,
20
+ n as md,
21
+ o as pagination,
22
+ _ as xs
23
+ };
24
+ //# sourceMappingURL=index.esm20.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm20.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -0,0 +1,52 @@
1
+ const t = "_steps_xg6k6_20", e = "_item_xg6k6_30", n = "_typeStart_xg6k6_51", _ = "_typeStep_xg6k6_66", o = "_typeEnd_xg6k6_82", c = "_stateDefault_xg6k6_94", i = "_stateHover_xg6k6_95", s = "_stateActive_xg6k6_96", m = "_stateComplete_xg6k6_97", a = "_textDark_xg6k6_101", x = "_textLight_xg6k6_102", k = "_label_xg6k6_106", g = "_num_xg6k6_119", l = "_checkIcon_xg6k6_132", p = "_minified_xg6k6_143", r = "_minDot_xg6k6_150", C = "_minDefault_xg6k6_156", D = "_minActive_xg6k6_162", f = "_minComplete_xg6k6_169", u = "_minConnector_xg6k6_176", v = "_minConnectorDefault_xg6k6_183", y = "_minConnectorActive_xg6k6_184", A = "_minConnectorComplete_xg6k6_185", d = {
2
+ steps: t,
3
+ item: e,
4
+ typeStart: n,
5
+ typeStep: _,
6
+ typeEnd: o,
7
+ stateDefault: c,
8
+ stateHover: i,
9
+ stateActive: s,
10
+ stateComplete: m,
11
+ textDark: a,
12
+ textLight: x,
13
+ label: k,
14
+ num: g,
15
+ checkIcon: l,
16
+ minified: p,
17
+ minDot: r,
18
+ minDefault: C,
19
+ minActive: D,
20
+ minComplete: f,
21
+ minConnector: u,
22
+ minConnectorDefault: v,
23
+ minConnectorActive: y,
24
+ minConnectorComplete: A
25
+ };
26
+ export {
27
+ l as checkIcon,
28
+ d as default,
29
+ e as item,
30
+ k as label,
31
+ D as minActive,
32
+ f as minComplete,
33
+ u as minConnector,
34
+ y as minConnectorActive,
35
+ A as minConnectorComplete,
36
+ v as minConnectorDefault,
37
+ C as minDefault,
38
+ r as minDot,
39
+ p as minified,
40
+ g as num,
41
+ s as stateActive,
42
+ m as stateComplete,
43
+ c as stateDefault,
44
+ i as stateHover,
45
+ t as steps,
46
+ a as textDark,
47
+ x as textLight,
48
+ o as typeEnd,
49
+ n as typeStart,
50
+ _ as typeStep
51
+ };
52
+ //# sourceMappingURL=index.esm21.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm21.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ const i = "_overlay_rzwii_24", t = "_modal_rzwii_43", n = "_heading_rzwii_64", o = "_title_rzwii_72", _ = "_description_rzwii_81", r = "_body_rzwii_92", s = "_actions_rzwii_101", a = "_btns_rzwii_108", c = "_btnSecondary_rzwii_115", e = "_btnPrimary_rzwii_137", d = {
2
+ overlay: i,
3
+ modal: t,
4
+ heading: n,
5
+ title: o,
6
+ description: _,
7
+ body: r,
8
+ actions: s,
9
+ btns: a,
10
+ btnSecondary: c,
11
+ btnPrimary: e
12
+ };
13
+ export {
14
+ s as actions,
15
+ r as body,
16
+ e as btnPrimary,
17
+ c as btnSecondary,
18
+ a as btns,
19
+ d as default,
20
+ _ as description,
21
+ n as heading,
22
+ t as modal,
23
+ i as overlay,
24
+ o as title
25
+ };
26
+ //# sourceMappingURL=index.esm22.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm22.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -0,0 +1,106 @@
1
+ const e = "_nav_53r24_22", t = "_navOpen_53r24_32", o = "_navClosed_53r24_33", _ = "_navMobile_53r24_42", n = "_header_53r24_51", a = "_headerOpen_53r24_58", s = "_headerClosed_53r24_64", l = "_headerMobile_53r24_73", c = "_logoIcon_53r24_80", i = "_logoFull_53r24_87", r = "_headerTitle_53r24_93", m = "_headerActions_53r24_102", v = "_bellBtn_53r24_108", b = "_links_53r24_129", d = "_linksOpen_53r24_136", p = "_linksClosed_53r24_137", I = "_linksMobile_53r24_138", h = "_section_53r24_142", k = "_sectionTitle_53r24_147", M = "_sectionItems_53r24_160", C = "_item_53r24_168", L = "_itemOpen_53r24_181", A = "_itemOpenActive_53r24_191", B = "_itemClosed_53r24_201", O = "_itemClosedActive_53r24_211", f = "_itemMobile_53r24_222", w = "_itemMobileActive_53r24_231", g = "_itemIcon_53r24_237", u = "_itemIconDark_53r24_246", D = "_itemIconLight_53r24_247", R = "_itemLabel_53r24_251", T = "_itemLabelDefault_53r24_263", F = "_itemLabelActive_53r24_264", N = "_itemLabelMobile_53r24_265", x = "_chevron_53r24_269", y = "_footer_53r24_283", j = "_collapseBtn_53r24_289", q = "_collapseBtnClosed_53r24_310", z = "_collapseBtnIcon_53r24_314", E = "_footerMobile_53r24_326", G = "_ctaBtn_53r24_335", H = "_workspace_53r24_358", J = "_workspaceIcon_53r24_372", K = "_workspaceLabel_53r24_383", P = "_avatarRow_53r24_397", Q = "_avatar_53r24_397", S = "_avatarInitials_53r24_415", U = "_avatarInfo_53r24_422", V = "_avatarName_53r24_430", W = "_avatarRole_53r24_441", X = {
2
+ nav: e,
3
+ navOpen: t,
4
+ navClosed: o,
5
+ navMobile: _,
6
+ header: n,
7
+ headerOpen: a,
8
+ headerClosed: s,
9
+ headerMobile: l,
10
+ logoIcon: c,
11
+ logoFull: i,
12
+ headerTitle: r,
13
+ headerActions: m,
14
+ bellBtn: v,
15
+ links: b,
16
+ linksOpen: d,
17
+ linksClosed: p,
18
+ linksMobile: I,
19
+ section: h,
20
+ sectionTitle: k,
21
+ sectionItems: M,
22
+ item: C,
23
+ itemOpen: L,
24
+ itemOpenActive: A,
25
+ itemClosed: B,
26
+ itemClosedActive: O,
27
+ itemMobile: f,
28
+ itemMobileActive: w,
29
+ itemIcon: g,
30
+ itemIconDark: u,
31
+ itemIconLight: D,
32
+ itemLabel: R,
33
+ itemLabelDefault: T,
34
+ itemLabelActive: F,
35
+ itemLabelMobile: N,
36
+ chevron: x,
37
+ footer: y,
38
+ collapseBtn: j,
39
+ collapseBtnClosed: q,
40
+ collapseBtnIcon: z,
41
+ footerMobile: E,
42
+ ctaBtn: G,
43
+ workspace: H,
44
+ workspaceIcon: J,
45
+ workspaceLabel: K,
46
+ avatarRow: P,
47
+ avatar: Q,
48
+ avatarInitials: S,
49
+ avatarInfo: U,
50
+ avatarName: V,
51
+ avatarRole: W
52
+ };
53
+ export {
54
+ Q as avatar,
55
+ U as avatarInfo,
56
+ S as avatarInitials,
57
+ V as avatarName,
58
+ W as avatarRole,
59
+ P as avatarRow,
60
+ v as bellBtn,
61
+ x as chevron,
62
+ j as collapseBtn,
63
+ q as collapseBtnClosed,
64
+ z as collapseBtnIcon,
65
+ G as ctaBtn,
66
+ X as default,
67
+ y as footer,
68
+ E as footerMobile,
69
+ n as header,
70
+ m as headerActions,
71
+ s as headerClosed,
72
+ l as headerMobile,
73
+ a as headerOpen,
74
+ r as headerTitle,
75
+ C as item,
76
+ B as itemClosed,
77
+ O as itemClosedActive,
78
+ g as itemIcon,
79
+ u as itemIconDark,
80
+ D as itemIconLight,
81
+ R as itemLabel,
82
+ F as itemLabelActive,
83
+ T as itemLabelDefault,
84
+ N as itemLabelMobile,
85
+ f as itemMobile,
86
+ w as itemMobileActive,
87
+ L as itemOpen,
88
+ A as itemOpenActive,
89
+ b as links,
90
+ p as linksClosed,
91
+ I as linksMobile,
92
+ d as linksOpen,
93
+ i as logoFull,
94
+ c as logoIcon,
95
+ e as nav,
96
+ o as navClosed,
97
+ _ as navMobile,
98
+ t as navOpen,
99
+ h as section,
100
+ M as sectionItems,
101
+ k as sectionTitle,
102
+ H as workspace,
103
+ J as workspaceIcon,
104
+ K as workspaceLabel
105
+ };
106
+ //# sourceMappingURL=index.esm23.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm23.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,62 @@
1
+ const a = {
2
+ fontFamily: {
3
+ /** Clash Grotesk Variable — buttons, inputs, labels */
4
+ base: "'Clash Grotesk Variable', sans-serif",
5
+ /** Inter — FileUpload text (Paragraph/SM and Paragraph/XS) */
6
+ inter: "'Inter', sans-serif",
7
+ /** Roboto — Pagination numbers and controls */
8
+ roboto: "'Roboto', sans-serif",
9
+ /** Clash Display Variable — Steps step number (Headings/H4 · 21px) */
10
+ clashDisplay: "'Clash Display Variable', sans-serif",
11
+ /** @deprecated use fontFamily.base */
12
+ button: "'Clash Grotesk Variable', sans-serif"
13
+ },
14
+ fontWeight: {
15
+ regular: 400,
16
+ semibold: 600
17
+ },
18
+ fontSize: {
19
+ /** 16px — Body Texts/Button & Body Texts/Text */
20
+ md: "1rem",
21
+ /** 14px — Body Texts/Label & Body Texts/Text Small */
22
+ sm: "0.875rem",
23
+ /** 12px — Paragraph/SM/Regular (Inter · FileUpload) */
24
+ bodySm: "0.75rem",
25
+ /** 10px — Paragraph/XS/Regular (Inter · FileUpload) */
26
+ bodyXs: "0.625rem",
27
+ /** 12px — Text/xs (Roboto · Pagination xs) */
28
+ paginationXs: "0.75rem",
29
+ /** 16px — Text/md (Roboto · Pagination md) */
30
+ paginationMd: "1rem",
31
+ /** 18px — Text/lg (Roboto · Pagination lg) */
32
+ paginationLg: "1.125rem",
33
+ /** @deprecated use fontSize.md */
34
+ button: "1rem"
35
+ },
36
+ lineHeight: {
37
+ /** 1.5 — Body Texts/Button */
38
+ button: 1.5,
39
+ /** 1.43 — Body Texts/Label (Semibold 14px) */
40
+ label: 1.43,
41
+ /** 1.30 — Body Texts/Text & Body Texts/Text Small */
42
+ text: 1.3,
43
+ /** 1.60 — Paragraph/SM/Regular & Paragraph/XS/Regular (Inter · FileUpload) */
44
+ body: 1.6,
45
+ /** 14px — Text/xs (Roboto · Pagination xs) */
46
+ paginationXs: "14px",
47
+ /** 18px — Text/md (Roboto · Pagination md) */
48
+ paginationMd: "18px",
49
+ /** 20px — Text/lg (Roboto · Pagination lg) */
50
+ paginationLg: "20px"
51
+ },
52
+ letterSpacing: {
53
+ /** 0 — all tokens */
54
+ none: 0,
55
+ /** @deprecated use letterSpacing.none */
56
+ button: 0
57
+ }
58
+ };
59
+ export {
60
+ a as typography
61
+ };
62
+ //# sourceMappingURL=index.esm3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm3.js","sources":["../tokens/typography.ts"],"sourcesContent":["/**\n * Typography tokens — extracted directly from Figma (VekfomfsZU4q2iaY1j4VXP)\n * Tokens: Body Texts/Button, Body Texts/Label, Body Texts/Text, Body Texts/Text Small,\n * Paragraph/SM/Regular, Paragraph/XS/Regular (FileUpload 3210:3538),\n * Text/xs, Text/md, Text/lg (Pagination 3203:662)\n */\n\nexport const typography = {\n fontFamily: {\n /** Clash Grotesk Variable — buttons, inputs, labels */\n base: \"'Clash Grotesk Variable', sans-serif\",\n /** Inter — FileUpload text (Paragraph/SM and Paragraph/XS) */\n inter: \"'Inter', sans-serif\",\n /** Roboto — Pagination numbers and controls */\n roboto: \"'Roboto', sans-serif\",\n /** Clash Display Variable — Steps step number (Headings/H4 · 21px) */\n clashDisplay: \"'Clash Display Variable', sans-serif\",\n /** @deprecated use fontFamily.base */\n button: \"'Clash Grotesk Variable', sans-serif\",\n },\n fontWeight: {\n regular: 400,\n semibold: 600,\n },\n fontSize: {\n /** 16px — Body Texts/Button & Body Texts/Text */\n md: '1rem',\n /** 14px — Body Texts/Label & Body Texts/Text Small */\n sm: '0.875rem',\n /** 12px — Paragraph/SM/Regular (Inter · FileUpload) */\n bodySm: '0.75rem',\n /** 10px — Paragraph/XS/Regular (Inter · FileUpload) */\n bodyXs: '0.625rem',\n /** 12px — Text/xs (Roboto · Pagination xs) */\n paginationXs: '0.75rem',\n /** 16px — Text/md (Roboto · Pagination md) */\n paginationMd: '1rem',\n /** 18px — Text/lg (Roboto · Pagination lg) */\n paginationLg: '1.125rem',\n /** @deprecated use fontSize.md */\n button: '1rem',\n },\n lineHeight: {\n /** 1.5 — Body Texts/Button */\n button: 1.5,\n /** 1.43 — Body Texts/Label (Semibold 14px) */\n label: 1.43,\n /** 1.30 — Body Texts/Text & Body Texts/Text Small */\n text: 1.3,\n /** 1.60 — Paragraph/SM/Regular & Paragraph/XS/Regular (Inter · FileUpload) */\n body: 1.6,\n /** 14px — Text/xs (Roboto · Pagination xs) */\n paginationXs: '14px',\n /** 18px — Text/md (Roboto · Pagination md) */\n paginationMd: '18px',\n /** 20px — Text/lg (Roboto · Pagination lg) */\n paginationLg: '20px',\n },\n letterSpacing: {\n /** 0 — all tokens */\n none: 0,\n /** @deprecated use letterSpacing.none */\n button: 0,\n },\n} as const;\n\nexport type Typography = typeof typography;\n"],"names":["typography"],"mappings":"AAOO,MAAMA,IAAa;AAAA,EACxB,YAAY;AAAA;AAAA,IAEV,MAAM;AAAA;AAAA,IAEN,OAAO;AAAA;AAAA,IAEP,QAAQ;AAAA;AAAA,IAER,cAAc;AAAA;AAAA,IAEd,QAAQ;AAAA,EAAA;AAAA,EAEV,YAAY;AAAA,IACV,SAAS;AAAA,IACT,UAAU;AAAA,EAAA;AAAA,EAEZ,UAAU;AAAA;AAAA,IAER,IAAI;AAAA;AAAA,IAEJ,IAAI;AAAA;AAAA,IAEJ,QAAQ;AAAA;AAAA,IAER,QAAQ;AAAA;AAAA,IAER,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,QAAQ;AAAA,EAAA;AAAA,EAEV,YAAY;AAAA;AAAA,IAEV,QAAQ;AAAA;AAAA,IAER,OAAO;AAAA;AAAA,IAEP,MAAM;AAAA;AAAA,IAEN,MAAM;AAAA;AAAA,IAEN,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA;AAAA,IAEd,cAAc;AAAA,EAAA;AAAA,EAEhB,eAAe;AAAA;AAAA,IAEb,MAAM;AAAA;AAAA,IAEN,QAAQ;AAAA,EAAA;AAEZ;"}
@@ -0,0 +1,115 @@
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import t from "./index.esm18.js";
3
+ const p = {
4
+ Default: "#9490AC",
5
+ Info: "#2472BA",
6
+ Success: "#2C7D56",
7
+ Warning: "#A36A00",
8
+ Error: "#DE0000"
9
+ };
10
+ function k({ color: e }) {
11
+ return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
12
+ /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
13
+ /* @__PURE__ */ r("path", { d: "M10 9v5", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" }),
14
+ /* @__PURE__ */ r("circle", { cx: "10", cy: "6.5", r: "1", fill: "#fff" })
15
+ ] });
16
+ }
17
+ function v({ color: e }) {
18
+ return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
19
+ /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
20
+ /* @__PURE__ */ r("path", { d: "M6 10.5l3 3 5-5.5", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round", strokeLinejoin: "round" })
21
+ ] });
22
+ }
23
+ function x({ color: e }) {
24
+ return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
25
+ /* @__PURE__ */ r("path", { d: "M10 2.5L18 17H2L10 2.5Z", fill: e }),
26
+ /* @__PURE__ */ r("path", { d: "M10 8v4", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" }),
27
+ /* @__PURE__ */ r("circle", { cx: "10", cy: "14.5", r: "1", fill: "#fff" })
28
+ ] });
29
+ }
30
+ function W({ color: e }) {
31
+ return /* @__PURE__ */ i("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: [
32
+ /* @__PURE__ */ r("circle", { cx: "10", cy: "10", r: "9", fill: e }),
33
+ /* @__PURE__ */ r("path", { d: "M7 7l6 6M13 7l-6 6", stroke: "#fff", strokeWidth: "1.75", strokeLinecap: "round" })
34
+ ] });
35
+ }
36
+ function m() {
37
+ return /* @__PURE__ */ r("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ r("path", { d: "M15 5L5 15M5 5l10 10", stroke: "currentColor", strokeWidth: "1.75", strokeLinecap: "round" }) });
38
+ }
39
+ function S({ type: e }) {
40
+ const n = p[e];
41
+ return e === "Success" ? /* @__PURE__ */ r(v, { color: n }) : e === "Warning" ? /* @__PURE__ */ r(x, { color: n }) : e === "Error" ? /* @__PURE__ */ r(W, { color: n }) : /* @__PURE__ */ r(k, { color: n });
42
+ }
43
+ const I = {
44
+ Default: t.typeDefault,
45
+ Info: t.typeInfo,
46
+ Success: t.typeSuccess,
47
+ Warning: t.typeWarning,
48
+ Error: t.typeError
49
+ }, M = {
50
+ Default: t.titleDefault,
51
+ Info: t.titleInfo,
52
+ Success: t.titleSuccess,
53
+ Warning: t.titleWarning,
54
+ Error: t.titleError
55
+ }, w = {
56
+ Default: "status",
57
+ Info: "status",
58
+ Success: "status",
59
+ Warning: "alert",
60
+ Error: "alert"
61
+ };
62
+ function B({
63
+ type: e = "Default",
64
+ title: n,
65
+ message: c,
66
+ addonLeft: s = !0,
67
+ closeIcon: o = !0,
68
+ actions: l = !1,
69
+ actionLabel: a = "Ação",
70
+ onClose: f,
71
+ onAction: u,
72
+ className: d
73
+ }) {
74
+ const h = [t.alert, I[e], d].filter(Boolean).join(" "), g = l || o;
75
+ return /* @__PURE__ */ i(
76
+ "div",
77
+ {
78
+ className: h,
79
+ role: w[e],
80
+ "aria-live": e === "Warning" || e === "Error" ? "assertive" : "polite",
81
+ children: [
82
+ s && /* @__PURE__ */ r("span", { className: t.iconSlot, children: /* @__PURE__ */ r(S, { type: e }) }),
83
+ /* @__PURE__ */ i("div", { className: t.textContent, children: [
84
+ n && /* @__PURE__ */ r("p", { className: [t.title, M[e]].join(" "), children: n }),
85
+ /* @__PURE__ */ r("p", { className: t.message, children: c })
86
+ ] }),
87
+ g && /* @__PURE__ */ i("div", { className: t.rightSlot, children: [
88
+ l && /* @__PURE__ */ r(
89
+ "button",
90
+ {
91
+ type: "button",
92
+ className: t.actionBtn,
93
+ onClick: u,
94
+ children: a
95
+ }
96
+ ),
97
+ o && /* @__PURE__ */ r(
98
+ "button",
99
+ {
100
+ type: "button",
101
+ className: t.closeBtn,
102
+ onClick: f,
103
+ "aria-label": "Fechar alerta",
104
+ children: /* @__PURE__ */ r(m, {})
105
+ }
106
+ )
107
+ ] })
108
+ ]
109
+ }
110
+ );
111
+ }
112
+ export {
113
+ B as Alert
114
+ };
115
+ //# sourceMappingURL=index.esm4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm4.js","sources":["../components/Alert/Alert.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './Alert.module.css';\n\n// ─── Types ────────────────────────────────────────────────────────────────────\n\nexport type AlertType = 'Default' | 'Info' | 'Success' | 'Warning' | 'Error';\n\nexport interface AlertProps {\n type?: AlertType;\n title?: string;\n message: string;\n /** Show icon on the left */\n addonLeft?: boolean;\n /** Show close (×) button on the right */\n closeIcon?: boolean;\n /** Show action button */\n actions?: boolean;\n /** Label for the action button (defaults to \"Ação\") */\n actionLabel?: string;\n onClose?: () => void;\n onAction?: () => void;\n className?: string;\n}\n\n// ─── Inline SVG icons ─────────────────────────────────────────────────────────\n\nconst iconColor: Record<AlertType, string> = {\n Default: '#9490AC',\n Info: '#2472BA',\n Success: '#2C7D56',\n Warning: '#A36A00',\n Error: '#DE0000',\n};\n\n/** Info-circle icon — Default & Info */\nfunction IconInfo({ color }: { color: string }) {\n return (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"10\" cy=\"10\" r=\"9\" fill={color} />\n <path d=\"M10 9v5\" stroke=\"#fff\" strokeWidth=\"1.75\" strokeLinecap=\"round\" />\n <circle cx=\"10\" cy=\"6.5\" r=\"1\" fill=\"#fff\" />\n </svg>\n );\n}\n\n/** Check-circle icon — Success */\nfunction IconSuccess({ color }: { color: string }) {\n return (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"10\" cy=\"10\" r=\"9\" fill={color} />\n <path d=\"M6 10.5l3 3 5-5.5\" stroke=\"#fff\" strokeWidth=\"1.75\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n );\n}\n\n/** Warning-triangle icon — Warning */\nfunction IconWarning({ color }: { color: string }) {\n return (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M10 2.5L18 17H2L10 2.5Z\" fill={color} />\n <path d=\"M10 8v4\" stroke=\"#fff\" strokeWidth=\"1.75\" strokeLinecap=\"round\" />\n <circle cx=\"10\" cy=\"14.5\" r=\"1\" fill=\"#fff\" />\n </svg>\n );\n}\n\n/** X-circle icon — Error */\nfunction IconError({ color }: { color: string }) {\n return (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <circle cx=\"10\" cy=\"10\" r=\"9\" fill={color} />\n <path d=\"M7 7l6 6M13 7l-6 6\" stroke=\"#fff\" strokeWidth=\"1.75\" strokeLinecap=\"round\" />\n </svg>\n );\n}\n\n/** Close × icon */\nfunction IconClose() {\n return (\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M15 5L5 15M5 5l10 10\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" />\n </svg>\n );\n}\n\nfunction TypeIcon({ type }: { type: AlertType }) {\n const color = iconColor[type];\n if (type === 'Success') return <IconSuccess color={color} />;\n if (type === 'Warning') return <IconWarning color={color} />;\n if (type === 'Error') return <IconError color={color} />;\n return <IconInfo color={color} />;\n}\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\nconst typeStyleMap: Record<AlertType, string> = {\n Default: styles.typeDefault,\n Info: styles.typeInfo,\n Success: styles.typeSuccess,\n Warning: styles.typeWarning,\n Error: styles.typeError,\n};\n\nconst titleStyleMap: Record<AlertType, string> = {\n Default: styles.titleDefault,\n Info: styles.titleInfo,\n Success: styles.titleSuccess,\n Warning: styles.titleWarning,\n Error: styles.titleError,\n};\n\nconst ariaRoleMap: Record<AlertType, string> = {\n Default: 'status',\n Info: 'status',\n Success: 'status',\n Warning: 'alert',\n Error: 'alert',\n};\n\nexport function Alert({\n type = 'Default',\n title,\n message,\n addonLeft = true,\n closeIcon = true,\n actions = false,\n actionLabel = 'Ação',\n onClose,\n onAction,\n className,\n}: AlertProps) {\n const rootClass = [styles.alert, typeStyleMap[type], className]\n .filter(Boolean)\n .join(' ');\n\n const hasRightSlot = actions || closeIcon;\n\n return (\n <div\n className={rootClass}\n role={ariaRoleMap[type]}\n aria-live={type === 'Warning' || type === 'Error' ? 'assertive' : 'polite'}\n >\n {/* Left icon */}\n {addonLeft && (\n <span className={styles.iconSlot}>\n <TypeIcon type={type} />\n </span>\n )}\n\n {/* Text */}\n <div className={styles.textContent}>\n {title && (\n <p className={[styles.title, titleStyleMap[type]].join(' ')}>\n {title}\n </p>\n )}\n <p className={styles.message}>{message}</p>\n </div>\n\n {/* Right: action + close */}\n {hasRightSlot && (\n <div className={styles.rightSlot}>\n {actions && (\n <button\n type=\"button\"\n className={styles.actionBtn}\n onClick={onAction}\n >\n {actionLabel}\n </button>\n )}\n {closeIcon && (\n <button\n type=\"button\"\n className={styles.closeBtn}\n onClick={onClose}\n aria-label=\"Fechar alerta\"\n >\n <IconClose />\n </button>\n )}\n </div>\n )}\n </div>\n );\n}\n"],"names":["iconColor","IconInfo","color","jsxs","jsx","IconSuccess","IconWarning","IconError","IconClose","TypeIcon","type","typeStyleMap","styles","titleStyleMap","ariaRoleMap","Alert","title","message","addonLeft","closeIcon","actions","actionLabel","onClose","onAction","className","rootClass","hasRightSlot"],"mappings":";;AA0BA,MAAMA,IAAuC;AAAA,EAC3C,SAAS;AAAA,EACT,MAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAS;AACX;AAGA,SAASC,EAAS,EAAE,OAAAC,KAA4B;AAC9C,SACE,gBAAAC,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,eAAY,QACtE,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAA,EAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI,MAAMF,EAAA,CAAO;AAAA,IAC3C,gBAAAE,EAAC,UA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
2
+ import e from "./index.esm14.js";
3
+ function u({
4
+ type: n = "Check",
5
+ status: k = "Default",
6
+ onChange: l,
7
+ className: r,
8
+ "aria-label": o,
9
+ "aria-labelledby": d
10
+ }) {
11
+ const a = k === "Checked", t = () => l == null ? void 0 : l(!a), s = (i) => {
12
+ (i.key === " " || i.key === "Enter") && (i.preventDefault(), l == null || l(!a));
13
+ };
14
+ if (n === "Toggle")
15
+ return /* @__PURE__ */ c(
16
+ "div",
17
+ {
18
+ role: "switch",
19
+ "aria-checked": a,
20
+ "aria-label": o,
21
+ "aria-labelledby": d,
22
+ tabIndex: 0,
23
+ onClick: t,
24
+ onKeyDown: s,
25
+ className: [
26
+ e.toggleWrapper,
27
+ a ? e.toggleChecked : "",
28
+ r
29
+ ].filter(Boolean).join(" "),
30
+ children: /* @__PURE__ */ c("div", { className: e.toggleTrack })
31
+ }
32
+ );
33
+ if (n === "Radio") {
34
+ const i = a ? e.radioChecked : e.radioDefault;
35
+ return /* @__PURE__ */ c(
36
+ "div",
37
+ {
38
+ role: "radio",
39
+ "aria-checked": a,
40
+ "aria-label": o,
41
+ "aria-labelledby": d,
42
+ tabIndex: 0,
43
+ onClick: t,
44
+ onKeyDown: s,
45
+ className: [e.base, i, r].filter(Boolean).join(" "),
46
+ children: a && /* @__PURE__ */ c("span", { className: e.radioIcon, "aria-hidden": "true" })
47
+ }
48
+ );
49
+ }
50
+ const f = a ? e.checkChecked : e.checkDefault;
51
+ return /* @__PURE__ */ c(
52
+ "div",
53
+ {
54
+ role: "checkbox",
55
+ "aria-checked": a,
56
+ "aria-label": o,
57
+ "aria-labelledby": d,
58
+ tabIndex: 0,
59
+ onClick: t,
60
+ onKeyDown: s,
61
+ className: [e.base, f, r].filter(Boolean).join(" "),
62
+ children: a && /* @__PURE__ */ c("span", { className: e.checkIcon, "aria-hidden": "true" })
63
+ }
64
+ );
65
+ }
66
+ export {
67
+ u as BaseCheckRadio
68
+ };
69
+ //# sourceMappingURL=index.esm5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm5.js","sources":["../components/BaseCheckRadio/BaseCheckRadio.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './BaseCheckRadio.module.css';\n\nexport type CheckRadioType = 'Check' | 'Radio' | 'Toggle';\nexport type CheckRadioStatus = 'Default' | 'Checked';\n\nexport interface BaseCheckRadioProps {\n type?: CheckRadioType;\n status?: CheckRadioStatus;\n /** Accessible label for the control. */\n 'aria-label'?: string;\n /** Associates the control with a visible label element. */\n 'aria-labelledby'?: string;\n onChange?: (checked: boolean) => void;\n className?: string;\n}\n\nexport function BaseCheckRadio({\n type = 'Check',\n status = 'Default',\n onChange,\n className,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n}: BaseCheckRadioProps) {\n const isChecked = status === 'Checked';\n\n const handleClick = () => onChange?.(!isChecked);\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === ' ' || e.key === 'Enter') {\n e.preventDefault();\n onChange?.(!isChecked);\n }\n };\n\n if (type === 'Toggle') {\n return (\n <div\n role=\"switch\"\n aria-checked={isChecked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n tabIndex={0}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n className={[\n styles.toggleWrapper,\n isChecked ? styles.toggleChecked : '',\n className,\n ]\n .filter(Boolean)\n .join(' ')}\n >\n <div className={styles.toggleTrack} />\n </div>\n );\n }\n\n if (type === 'Radio') {\n const trackClass = isChecked ? styles.radioChecked : styles.radioDefault;\n return (\n <div\n role=\"radio\"\n aria-checked={isChecked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n tabIndex={0}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n className={[styles.base, trackClass, className].filter(Boolean).join(' ')}\n >\n {isChecked && <span className={styles.radioIcon} aria-hidden=\"true\" />}\n </div>\n );\n }\n\n // Check (default)\n const trackClass = isChecked ? styles.checkChecked : styles.checkDefault;\n return (\n <div\n role=\"checkbox\"\n aria-checked={isChecked}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n tabIndex={0}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n className={[styles.base, trackClass, className].filter(Boolean).join(' ')}\n >\n {isChecked && <span className={styles.checkIcon} aria-hidden=\"true\" />}\n </div>\n );\n}\n"],"names":["BaseCheckRadio","type","status","onChange","className","ariaLabel","ariaLabelledby","isChecked","handleClick","handleKeyDown","e","jsx","styles","trackClass"],"mappings":";;AAiBO,SAASA,EAAe;AAAA,EAC7B,MAAAC,IAAO;AAAA,EACP,QAAAC,IAAS;AAAA,EACT,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,cAAcC;AAAA,EACd,mBAAmBC;AACrB,GAAwB;AACtB,QAAMC,IAAYL,MAAW,WAEvBM,IAAc,MAAML,KAAA,gBAAAA,EAAW,CAACI,IAEhCE,IAAgB,CAACC,MAA2B;AAChD,KAAIA,EAAE,QAAQ,OAAOA,EAAE,QAAQ,aAC7BA,EAAE,eAAA,GACFP,KAAA,QAAAA,EAAW,CAACI;AAAA,EAEhB;AAEA,MAAIN,MAAS;AACX,WACE,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,gBAAcJ;AAAA,QACd,cAAYF;AAAA,QACZ,mBAAiBC;AAAA,QACjB,UAAU;AAAA,QACV,SAASE;AAAA,QACT,WAAWC;AAAA,QACX,WAAW;AAAA,UACTG,EAAO;AAAA,UACPL,IAAYK,EAAO,gBAAgB;AAAA,UACnCR;AAAA,QAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAAA,QAEX,UAAA,gBAAAO,EAAC,OAAA,EAAI,WAAWC,EAAO,YAAA,CAAa;AAAA,MAAA;AAAA,IAAA;AAK1C,MAAIX,MAAS,SAAS;AACpB,UAAMY,IAAaN,IAAYK,EAAO,eAAeA,EAAO;AAC5D,WACE,gBAAAD;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,gBAAcJ;AAAA,QACd,cAAYF;AAAA,QACZ,mBAAiBC;AAAA,QACjB,UAAU;AAAA,QACV,SAASE;AAAA,QACT,WAAWC;AAAA,QACX,WAAW,CAACG,EAAO,MAAMC,GAAYT,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,QAEvE,eAAa,gBAAAO,EAAC,QAAA,EAAK,WAAWC,EAAO,WAAW,eAAY,OAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAG1E;AAGA,QAAMC,IAAaN,IAAYK,EAAO,eAAeA,EAAO;AAC5D,SACE,gBAAAD;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,gBAAcJ;AAAA,MACd,cAAYF;AAAA,MACZ,mBAAiBC;AAAA,MACjB,UAAU;AAAA,MACV,SAASE;AAAA,MACT,WAAWC;AAAA,MACX,WAAW,CAACG,EAAO,MAAMC,GAAYT,CAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG;AAAA,MAEvE,eAAa,gBAAAO,EAAC,QAAA,EAAK,WAAWC,EAAO,WAAW,eAAY,OAAA,CAAO;AAAA,IAAA;AAAA,EAAA;AAG1E;"}
@@ -0,0 +1,37 @@
1
+ import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
+ import s from "./index.esm19.js";
3
+ function d({
4
+ variant: t = "outline",
5
+ size: e = "sm",
6
+ iconLeft: l,
7
+ iconRight: o,
8
+ disabled: a,
9
+ className: r,
10
+ children: c,
11
+ ...i
12
+ }) {
13
+ const m = a ? "disabled" : t, u = [
14
+ s.button,
15
+ s[e],
16
+ s[m],
17
+ r
18
+ ].filter(Boolean).join(" ");
19
+ return /* @__PURE__ */ p(
20
+ "button",
21
+ {
22
+ className: u,
23
+ disabled: a,
24
+ "aria-disabled": a,
25
+ ...i,
26
+ children: [
27
+ l && /* @__PURE__ */ n("span", { className: s.icon, children: l }),
28
+ /* @__PURE__ */ n("span", { className: s.label, children: c }),
29
+ o && /* @__PURE__ */ n("span", { className: s.icon, children: o })
30
+ ]
31
+ }
32
+ );
33
+ }
34
+ export {
35
+ d as Button
36
+ };
37
+ //# sourceMappingURL=index.esm6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm6.js","sources":["../components/Button/Button.tsx"],"sourcesContent":["import React from 'react';\nimport styles from './Button.module.css';\n\nexport type ButtonVariant = 'outline' | 'fill' | 'secondary' | 'text';\nexport type ButtonSize = 'sm' | 'md';\n\nexport interface ButtonProps\n extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {\n /** Visual variant. Defaults to 'outline'. */\n variant?: ButtonVariant;\n /**\n * Size of the button.\n * - sm → min-height 36px (Figma size=\"36\")\n * - md → min-height 48px (Figma size=\"48\")\n * Defaults to 'sm'.\n */\n size?: ButtonSize;\n /** Node rendered before the label. Sized to 24×24 px by the stylesheet. */\n iconLeft?: React.ReactNode;\n /** Node rendered after the label. Sized to 24×24 px by the stylesheet. */\n iconRight?: React.ReactNode;\n children: React.ReactNode;\n}\n\nexport function Button({\n variant = 'outline',\n size = 'sm',\n iconLeft,\n iconRight,\n disabled,\n className,\n children,\n ...props\n}: ButtonProps) {\n // When the button is disabled, the disabled visual variant takes over\n const visualVariant = disabled ? 'disabled' : variant;\n\n const classNames = [\n styles.button,\n styles[size],\n styles[visualVariant],\n className,\n ]\n .filter(Boolean)\n .join(' ');\n\n return (\n <button\n className={classNames}\n disabled={disabled}\n aria-disabled={disabled}\n {...props}\n >\n {iconLeft && <span className={styles.icon}>{iconLeft}</span>}\n <span className={styles.label}>{children}</span>\n {iconRight && <span className={styles.icon}>{iconRight}</span>}\n </button>\n );\n}\n"],"names":["Button","variant","size","iconLeft","iconRight","disabled","className","children","props","visualVariant","classNames","styles","jsxs","jsx"],"mappings":";;AAwBO,SAASA,EAAO;AAAA,EACrB,SAAAC,IAAU;AAAA,EACV,MAAAC,IAAO;AAAA,EACP,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,GAAgB;AAEd,QAAMC,IAAgBJ,IAAW,aAAaJ,GAExCS,IAAa;AAAA,IACjBC,EAAO;AAAA,IACPA,EAAOT,CAAI;AAAA,IACXS,EAAOF,CAAa;AAAA,IACpBH;AAAA,EAAA,EAEC,OAAO,OAAO,EACd,KAAK,GAAG;AAEX,SACE,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWF;AAAA,MACX,UAAAL;AAAA,MACA,iBAAeA;AAAA,MACd,GAAGG;AAAA,MAEH,UAAA;AAAA,QAAAL,KAAY,gBAAAU,EAAC,QAAA,EAAK,WAAWF,EAAO,MAAO,UAAAR,GAAS;AAAA,QACrD,gBAAAU,EAAC,QAAA,EAAK,WAAWF,EAAO,OAAQ,UAAAJ,GAAS;AAAA,QACxCH,KAAa,gBAAAS,EAAC,QAAA,EAAK,WAAWF,EAAO,MAAO,UAAAP,EAAA,CAAU;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG7D;"}