@fluidattacks/design 3.1.11 → 3.1.13

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 (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -0,0 +1,141 @@
1
+ import { styled as a } from "styled-components";
2
+ import { v as n } from "./utils-V0EumEPM.mjs";
3
+ import "./styles-CplEd2kw.mjs";
4
+ import "react/jsx-runtime";
5
+ const { getVariant: o } = n(
6
+ (i) => ({
7
+ lg: `
8
+ @media screen and (min-width: ${i.breakpoints.sm}) {
9
+ width: 72%;
10
+ }
11
+ @media screen and (max-width: ${i.breakpoints.sm}) {
12
+ width: 80%;
13
+ }
14
+ `,
15
+ md: `
16
+ @media screen and (min-width: ${i.breakpoints.sm}) {
17
+ width: 48%;
18
+ }
19
+ @media screen and (max-width: ${i.breakpoints.sm}) {
20
+ width: 60%;
21
+ }
22
+ `,
23
+ sm: `
24
+ @media screen and (min-width: ${i.breakpoints.sm}) {
25
+ width: 32%;
26
+ }
27
+ @media screen and (max-width: ${i.breakpoints.sm}) {
28
+ width: 40%;
29
+ }
30
+ `
31
+ })
32
+ ), c = a.div.attrs({
33
+ className: "comp-modal fixed inset-0 overflow-auto"
34
+ })`
35
+ align-items: center;
36
+ background-color: rgb(52 64 84 / 70%);
37
+ display: flex;
38
+ justify-content: center;
39
+ z-index: 99999;
40
+ `, l = a.div`
41
+ ${({ theme: i, $size: t }) => `
42
+ background-color: ${i.palette.white};
43
+ border: 1px solid ${i.palette.gray[200]};
44
+ border-radius: ${i.spacing[0.25]};
45
+ color: ${i.palette.gray[800]};
46
+ display: flex;
47
+ flex-direction: column;
48
+ font-family: ${i.typography.type.primary};
49
+ font-size: ${i.typography.text.sm};
50
+ max-height: 80%;
51
+ min-height: minmax(max-content, 32%);
52
+ overflow: hidden auto;
53
+ padding: ${i.spacing[1.5]};
54
+ box-shadow: ${i.shadows.lg};
55
+ margin: auto;
56
+ white-space: pre-line;
57
+
58
+ > *:not(img) {
59
+ margin-bottom: ${i.spacing[1.5]};
60
+ }
61
+
62
+ > *:last-child {
63
+ margin-bottom: 0;
64
+ }
65
+
66
+ &#table-column-toggle {
67
+ @media screen and (min-width: ${i.breakpoints.sm}) {
68
+ width: 24%;
69
+ }
70
+ @media screen and (max-width: ${i.breakpoints.sm}) {
71
+ width: 32%;
72
+ }
73
+ }
74
+
75
+ ${o(i, t)}
76
+ `}
77
+ `, m = a.div`
78
+ display: block;
79
+ overflow: unset;
80
+ height: max-content;
81
+ max-height: 100%;
82
+ max-width: 100%;
83
+ position: static;
84
+ `, p = a.div.attrs({
85
+ className: "flex items-center justify-between mb-1.5"
86
+ })``, g = a.div`
87
+ ${({ theme: i }) => `
88
+ display: flex;
89
+ flex-direction: row;
90
+ gap: ${i.spacing[0.75]};
91
+ justify-content: space-between;
92
+ margin: 0;
93
+ max-width: 392px;
94
+
95
+ > label {
96
+ margin: 0;
97
+ flex: 1 1 auto;
98
+ }
99
+
100
+ > div {
101
+ display: flex;
102
+ flex-direction: row;
103
+ flex: 1 1 auto;
104
+ gap: ${i.spacing[0.75]};
105
+ margin-right: ${i.spacing[0.75]};
106
+
107
+ > button {
108
+ justify-content: center;
109
+ max-width: 190px;
110
+ }
111
+ }
112
+
113
+ > div:last-child {
114
+ margin-right: 0;
115
+ }
116
+ `}
117
+ `, x = a.div`
118
+ img {
119
+ margin: 0 calc(-${({ theme: i }) => i.spacing[1.5]} - 1px)
120
+ ${({ theme: i }) => i.spacing[1.5]};
121
+
122
+ min-width: calc(100% + 2px + ${({ theme: i }) => i.spacing[3]});
123
+ height: 185px;
124
+ object-fit: cover;
125
+
126
+ ${({ $framed: i = !1 }) => i ? `
127
+ border-radius: 8px;
128
+ min-width: 100%;
129
+ margin-left: 0;
130
+ margin-right: 0;
131
+ ` : ""}
132
+ }
133
+ `;
134
+ export {
135
+ g as F,
136
+ m as H,
137
+ x as I,
138
+ c as M,
139
+ p as T,
140
+ l as a
141
+ };
@@ -0,0 +1,65 @@
1
+ import { styled as r } from "styled-components";
2
+ const i = r.li`
3
+ ${({ theme: a }) => `
4
+ align-items: center;
5
+ background-color: ${a.palette.white};
6
+ color: ${a.palette.gray[800]};
7
+ cursor: pointer;
8
+ display: flex;
9
+ font-size: ${a.typography.text.sm};
10
+ font-weight: ${a.typography.weight.regular};
11
+ justify-content: space-between;
12
+ gap: ${a.spacing[0.625]};
13
+ line-height: ${a.spacing[1.25]};
14
+ list-style-type: none;
15
+ min-height: 40px;
16
+ min-width: 240px;
17
+ padding: ${a.spacing[0.625]} ${a.spacing[1]};
18
+ pointer-events: auto;
19
+
20
+ p,
21
+ a {
22
+ word-break: break-word;
23
+ }
24
+
25
+ & > label {
26
+ margin: unset;
27
+ }
28
+
29
+ a {
30
+ color: ${a.palette.gray[500]};
31
+ }
32
+
33
+ &[aria-disabled="true"] {
34
+ color: ${a.palette.gray[300]};
35
+ pointer-events: none;
36
+
37
+ a {
38
+ color: ${a.palette.gray[300]};
39
+ }
40
+ }
41
+
42
+ &[aria-selected="true"] {
43
+ background-color: ${a.palette.gray[200]};
44
+ }
45
+
46
+ &:hover:not([aria-selected="true"]) {
47
+ background-color: ${a.palette.gray[100]};
48
+ }
49
+ `}
50
+ `, t = r.ul`
51
+ ${({ theme: a }) => `
52
+ background-color: ${a.palette.white};
53
+ border: 1px solid ${a.palette.gray[200]};
54
+ border-radius: ${a.spacing[0.25]};
55
+ box-shadow: ${a.shadows.md};
56
+ display: inline-block;
57
+ margin: unset;
58
+ min-width: 240px;
59
+ padding: ${a.spacing[0.25]} 0 ${a.spacing[0.25]} 0;
60
+ `}
61
+ `;
62
+ export {
63
+ i as L,
64
+ t as a
65
+ };
@@ -0,0 +1,144 @@
1
+ import { styled as i, css as n } from "styled-components";
2
+ const e = i.div`
3
+ ${({ theme: t }) => `
4
+ align-items: center;
5
+ color: ${t.palette.gray[800]};
6
+ display: flex;
7
+ font-family: ${t.typography.type.primary};
8
+ font-size: ${t.typography.text.sm};
9
+ font-weight: ${t.typography.weight.bold};
10
+ gap: ${t.spacing[0.5]};
11
+ height: 40px;
12
+ justify-content: center;
13
+ line-height: ${t.spacing[1.25]};
14
+ text-align: center;
15
+ padding: ${t.spacing[0.5]} 0;
16
+ width: 200px;
17
+ word-spacing: ${t.spacing[0.25]};
18
+
19
+ &:not(:hover) .year-selection {
20
+ display: none;
21
+ }
22
+ `}
23
+ `, s = i.div.attrs({ className: "year-selection" })`
24
+ align-items: flex-start;
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: 6px;
28
+ height: 14px;
29
+ justify-content: center;
30
+ margin-bottom: 10px;
31
+ padding: 0 0.5px;
32
+ position: relative;
33
+ width: 8px;
34
+ `, r = i.tr`
35
+ align-items: flex-start;
36
+ display: flex;
37
+ padding: ${({ theme: t }) => t.spacing[0.25]} 0;
38
+ width: 100%;
39
+ `, a = n`
40
+ ${({ theme: t }) => `
41
+ align-items: center;
42
+ color: ${t.palette.gray[800]};
43
+ cursor: pointer;
44
+ display: flex;
45
+ flex-direction: column;
46
+ font-family: ${t.typography.type.primary};
47
+ font-size: ${t.typography.text.sm};
48
+ font-weight: ${t.typography.weight.regular};
49
+ height: ${t.spacing[2.5]};
50
+ justify-content: center;
51
+ line-height: ${t.spacing[1.25]};
52
+ text-align: center;
53
+ width: ${t.spacing[2.5]};
54
+ `}
55
+ `, p = i.th`
56
+ ${a}
57
+ `, l = i.td`
58
+ ${({ theme: t }) => `
59
+ ${a}
60
+ height: ${t.spacing[2.5]};
61
+ width: ${t.spacing[2.5]};
62
+
63
+ &#range {
64
+ background: ${t.palette.primary[25]};
65
+ }
66
+
67
+ div:not(.dot) {
68
+ align-items: center;
69
+ display: flex;
70
+ flex-direction: column;
71
+ font-size: ${t.typography.text.sm};
72
+ justify-content: center;
73
+ height: ${t.spacing[2.5]};
74
+ line-height: ${t.spacing[1.25]};
75
+ position: relative;
76
+ text-align: center;
77
+ width: ${t.spacing[2.5]};
78
+
79
+ &:focus-visible {
80
+ outline: none;
81
+ }
82
+
83
+ &:hover:not(.disabled, .selected, .range) {
84
+ background: ${t.palette.gray[100]};
85
+ }
86
+
87
+ &.disabled {
88
+ color: ${t.palette.gray[400]};
89
+ cursor: auto;
90
+ }
91
+
92
+ &.selected {
93
+ background: ${t.palette.primary[500]};
94
+ color: ${t.palette.white};
95
+ }
96
+
97
+ &.focused {
98
+ border: 2px solid ${t.palette.primary[500]};
99
+ }
100
+
101
+ &.today:not(.selected) {
102
+ color: ${t.palette.primary[500]};
103
+ font-weight: ${t.typography.weight.bold};
104
+ }
105
+ }
106
+ `}
107
+ `, c = i.div.attrs({ className: "dot" })`
108
+ position: absolute;
109
+ top: 48%;
110
+
111
+ > span {
112
+ font-size: 4px;
113
+ }
114
+ `, g = i.button`
115
+ cursor: pointer;
116
+ display: flex;
117
+
118
+ > span {
119
+ height: 3.5px;
120
+ width: 7px;
121
+ }
122
+ `, d = i.div`
123
+ ${({ theme: t }) => `
124
+ align-items: end;
125
+ border-top: 1px solid ${t.palette.gray[200]};
126
+ display: flex;
127
+ flex-direction: row-reverse;
128
+ gap: ${t.spacing[0.5]};
129
+ height: 44px;
130
+ margin-bottom: ${t.spacing[0.25]};
131
+ padding: 0 ${t.spacing[0.25]};
132
+ width: 100%;
133
+ `}
134
+ `;
135
+ export {
136
+ g as C,
137
+ p as D,
138
+ d as F,
139
+ e as T,
140
+ r as W,
141
+ s as Y,
142
+ l as a,
143
+ c as b
144
+ };
@@ -0,0 +1,76 @@
1
+ import { styled as i } from "styled-components";
2
+ const t = i.div`
3
+ ${({ theme: n }) => `
4
+ background-color: ${n.palette.gray[100]};
5
+ border-radius: ${n.spacing[0.25]};
6
+ display: inline-flex;
7
+ padding: ${n.spacing[1]};
8
+ position: relative;
9
+ width: fit-content;
10
+
11
+ .line-highlight.language-none {
12
+ background: ${n.palette.gray[100]};
13
+ }
14
+
15
+ .line-highlight {
16
+ background: hsl(354deg 88% 93% / 50%);
17
+ font-family: ${n.typography.type.mono};
18
+ font-size: ${n.typography.text.xs};
19
+ line-height: ${n.spacing[1]};
20
+ }
21
+
22
+ .line-highlight::before,
23
+ .line-highlight[data-end]::after {
24
+ background: ${n.palette.primary[300]};
25
+ background-color: hsl(355deg 89% 36%);
26
+ color: ${n.palette.white};
27
+ }
28
+
29
+ pre code {
30
+ color: #161616;
31
+ font-family: ${n.typography.type.mono};
32
+ font-size: ${n.typography.text.xs};
33
+ line-height: ${n.spacing[1]};
34
+ }
35
+
36
+ pre:not(.line-highlight) {
37
+ margin-top: unset;
38
+ margin-bottom: unset;
39
+ padding: unset;
40
+ width: 100%;
41
+ }
42
+
43
+ span:hover {
44
+ background-color: ${n.palette.gray[200]};
45
+ }
46
+
47
+ .no-data,
48
+ pre.line-highlight {
49
+ background-color: ${n.palette.gray[100]};
50
+ padding-top: unset;
51
+ padding-bottom: unset;
52
+ }
53
+ `}
54
+ `, a = i.div`
55
+ ${({ theme: n }) => `
56
+ align-items: end;
57
+ background-color: ${n.palette.gray[100]};
58
+ display: flex;
59
+ flex-direction: column;
60
+ justify-content: space-between;
61
+ min-width: 103px;
62
+ margin-right: ${n.spacing[1]};
63
+ padding-top: ${n.spacing[1]};
64
+ padding-bottom: ${n.spacing[1]};
65
+ position: relative;
66
+ padding-left: unset;
67
+
68
+ button:hover:not([disabled]) {
69
+ background-color: ${n.palette.gray[200]};
70
+ }
71
+ `}
72
+ `;
73
+ export {
74
+ a as B,
75
+ t as C
76
+ };
@@ -0,0 +1,228 @@
1
+ import { styled as g } from "styled-components";
2
+ import { theme as n } from "./components/colors/index.js";
3
+ const G = [
4
+ // IPaddingModifiable
5
+ "padding",
6
+ "px",
7
+ "py",
8
+ "pl",
9
+ "pr",
10
+ "pt",
11
+ "pb",
12
+ // IMarginModifiable
13
+ "margin",
14
+ "mx",
15
+ "my",
16
+ "ml",
17
+ "mr",
18
+ "mt",
19
+ "mb",
20
+ // IPositionModifiable
21
+ "zIndex",
22
+ "position",
23
+ "top",
24
+ "right",
25
+ "bottom",
26
+ "left",
27
+ // IBorderModifiable
28
+ "border",
29
+ "borderTop",
30
+ "borderRight",
31
+ "borderBottom",
32
+ "borderLeft",
33
+ "borderColor",
34
+ "borderRadius",
35
+ // IDisplayModifiable
36
+ "scroll",
37
+ "visibility",
38
+ "display",
39
+ "height",
40
+ "width",
41
+ "maxHeight",
42
+ "maxWidth",
43
+ "minHeight",
44
+ "minWidth",
45
+ "shadow",
46
+ "bgColor",
47
+ "bgGradient",
48
+ "gap",
49
+ "flexDirection",
50
+ "flexGrow",
51
+ "justify",
52
+ "justifySelf",
53
+ "alignItems",
54
+ "alignSelf",
55
+ "wrap",
56
+ // ITextModifiable
57
+ "color",
58
+ "fontFamily",
59
+ "fontSize",
60
+ "fontWeight",
61
+ "textAlign",
62
+ "whiteSpace",
63
+ "letterSpacing",
64
+ "lineSpacing",
65
+ "textDecoration",
66
+ "textOverflow",
67
+ "whiteSpace",
68
+ "wordBreak",
69
+ "wordWrap",
70
+ // IInteractionModifiable
71
+ "cursor",
72
+ "transition",
73
+ "borderColorHover",
74
+ "bgColorHover",
75
+ "shadowHover"
76
+ ], o = (t, e) => e === void 0 ? "" : `${t}: ${e};`, $ = (t) => {
77
+ const e = t.py ?? t.pt ?? 0, i = t.px ?? t.pr ?? 0, r = t.py ?? t.pb ?? 0, c = t.px ?? t.pl ?? 0;
78
+ if (t.padding) {
79
+ const [a, s, d, l] = t.padding;
80
+ return `padding: ${n.spacing[a]} ${n.spacing[s]} ${n.spacing[d]} ${n.spacing[l]};`;
81
+ }
82
+ return `padding: ${n.spacing[e]} ${n.spacing[i]} ${n.spacing[r]} ${n.spacing[c]};`;
83
+ }, f = (t) => {
84
+ const e = t.my ?? t.mt ?? 0, i = t.mx ?? t.mr ?? 0, r = t.my ?? t.mb ?? 0, c = t.mx ?? t.ml ?? 0;
85
+ if (t.margin) {
86
+ const [a, s, d, l] = t.margin;
87
+ return `margin: ${n.spacing[a]} ${n.spacing[s]} ${n.spacing[d]} ${n.spacing[l]};`;
88
+ }
89
+ return `margin: ${n.spacing[e]} ${n.spacing[i]} ${n.spacing[r]} ${n.spacing[c]};`;
90
+ }, h = (t) => {
91
+ const e = o("position", t.position), i = o("top", t.top), r = o("right", t.right), c = o("bottom", t.bottom), a = o("left", t.left), s = o("z-index", t.zIndex);
92
+ return `
93
+ ${e}
94
+ ${i}
95
+ ${r}
96
+ ${c}
97
+ ${a}
98
+ ${s}
99
+ `;
100
+ }, m = (t) => {
101
+ const e = o("border", t.border), i = o("border-top", t.borderTop), r = o("border-right", t.borderRight), c = o("border-bottom", t.borderBottom), a = o("border-left", t.borderLeft), s = o("border-color", t.borderColor), d = o("border-radius", t.borderRadius);
102
+ return `
103
+ ${e}
104
+ ${i}
105
+ ${r}
106
+ ${c}
107
+ ${a}
108
+ ${s}
109
+ ${d}
110
+ `;
111
+ }, R = (t) => t.includes("x") ? "overflow-x: auto;" : "", P = (t) => t.includes("y") ? "overflow-y: auto;" : "", b = (t) => {
112
+ const e = t.scroll ? `
113
+ ${R(t.scroll)}
114
+ ${P(t.scroll)}
115
+ ` : "", i = o("visibility", t.visibility), r = o("display", t.display), c = o("height", t.height), a = o("width", t.width), s = o("max-height", t.maxHeight), d = o("max-width", t.maxWidth), l = o("min-height", t.minHeight), y = o("min-width", t.minWidth), S = o(
116
+ "box-shadow",
117
+ t.shadow ? n.shadows[t.shadow] : void 0
118
+ ), v = o(
119
+ "gap",
120
+ t.gap === void 0 ? void 0 : n.spacing[t.gap]
121
+ ), C = o("background-color", t.bgColor), H = o("background", t.bgGradient), B = o("flex-direction", t.flexDirection), W = o("flex-grow", t.flexGrow), j = o("justify-content", t.justify), k = o("justify-self", t.justifySelf), z = o("align-items", t.alignItems), I = o("align-self", t.alignSelf), D = o("flex-wrap", t.wrap);
122
+ return `
123
+ ${e}
124
+ ${i}
125
+ ${r}
126
+ ${c}
127
+ ${a}
128
+ ${s}
129
+ ${d}
130
+ ${l}
131
+ ${y}
132
+ ${S}
133
+ ${C}
134
+ ${H}
135
+ ${v}
136
+ ${B}
137
+ ${W}
138
+ ${j}
139
+ ${k}
140
+ ${z}
141
+ ${I}
142
+ ${D}
143
+ `;
144
+ }, w = (t) => {
145
+ const e = o("color", t.color), i = o("font-family", t.fontFamily), r = o("font-size", t.fontSize), c = o("font-weight", t.fontWeight), a = o("line-spacing", t.letterSpacing), s = o("line-height", t.lineSpacing), d = o("text-align", t.textAlign), l = o("text-decoration", t.textDecoration), y = o("text-overflow", t.textOverflow), S = o("white-space", t.whiteSpace), v = o("word-break", t.wordBreak), C = o("word-wrap", t.wordWrap);
146
+ return `
147
+ ${e}
148
+ ${i}
149
+ ${r}
150
+ ${c}
151
+ ${a}
152
+ ${s}
153
+ ${d}
154
+ ${l}
155
+ ${y}
156
+ ${S}
157
+ ${v}
158
+ ${C}
159
+ `;
160
+ }, x = (t) => {
161
+ const e = o("cursor", t.cursor), i = o("border-color", t.borderColorHover), r = o("background-color", t.bgColorHover), c = o(
162
+ "box-shadow",
163
+ t.shadowHover === void 0 ? void 0 : n.shadows[t.shadowHover]
164
+ ), a = o("transition", t.transition);
165
+ return `
166
+ ${e}
167
+
168
+ &:hover {
169
+ ${a || "transition: all 0.2s;"}
170
+ ${i}
171
+ ${r}
172
+ ${c}
173
+ }
174
+ `;
175
+ }, u = () => ({
176
+ shouldForwardProp: (t) => !G.includes(t)
177
+ }), A = g.div.withConfig(u())`
178
+ ${$}
179
+ ${f}
180
+ ${h}
181
+ ${b}
182
+ ${w}
183
+ ${m}
184
+ ${x}
185
+ `, L = g.button.withConfig(
186
+ u()
187
+ )`
188
+ ${$}
189
+ ${f}
190
+ ${h}
191
+ ${b}
192
+ ${w}
193
+ ${m}
194
+ ${x}
195
+ `, O = g.p.withConfig(u())`
196
+ ${$}
197
+ ${f}
198
+ ${h}
199
+ ${b}
200
+ ${w}
201
+ ${m}
202
+ ${x}
203
+ `, M = g.span.withConfig(
204
+ u()
205
+ )`
206
+ ${$}
207
+ ${f}
208
+ ${h}
209
+ ${b}
210
+ ${w}
211
+ ${m}
212
+ ${x}
213
+ `;
214
+ export {
215
+ A as B,
216
+ L as a,
217
+ O as b,
218
+ M as c,
219
+ w as d,
220
+ f as e,
221
+ x as f,
222
+ h as g,
223
+ G as h,
224
+ b as i,
225
+ m as j,
226
+ u as k,
227
+ $ as s
228
+ };