package bonsai

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file button_style__generated.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
include struct
  [@@@ocaml.warning "-32"]
  let () =
    Inline_css.Private.append
      {|
/* _none_ */

@layer kado.button{
 *:root {
  --fast_hash_54d8137416:0.07s;
  --slow_hash_54d8137416:0.14s;
  --anim-style_hash_54d8137416:linear;
  --gap_hash_54d8137416:8.485281374238px;
  --fill_hash_54d8137416:calc(2 * var(--gap_hash_54d8137416))
 }
 
 *.btn_hash_54d8137416 {
  font-family:"Inter",sans-serif;
  appearance:none;
  all:unset;
  display:inline-block;
  user-select:none;
  box-sizing:border-box;
  font-size:1em;
  border:0;
  text-align:left;
  padding:2px 8px;
  margin:3px 0 3px 0;
  border-radius:3px;
  position:relative;
  cursor:pointer;
  transform-style:preserve-3d;
  outline-offset:-6px;
  outline:6.0px solid transparent;
  transition:var(--anim-style_hash_54d8137416) var(--fast_hash_54d8137416) outline,var(--anim-style_hash_54d8137416) var(--fast_hash_54d8137416) outline-offset,var(--anim-style_hash_54d8137416) var(--fast_hash_54d8137416) transform,var(--anim-style_hash_54d8137416) var(--fast_hash_54d8137416) border-radius;
  transform:translateZ(1px);
  transform-style:preserve-3d;
  -webkit-transform-style:preserve-3d;
  -webkit-tap-highlight-color:rgba(0,0,0,0)
 }
 
 *.btn_hash_54d8137416:disabled {
  cursor:not-allowed;
  outline:none;
  background:repeating-linear-gradient(45deg,var(--btn-bg_hash_54d8137416),var(--btn-bg_hash_54d8137416) 6px,var(--dsbl_hash_54d8137416) 6px,var(--dsbl_hash_54d8137416) 12px)
 }
 
 *.btn_hash_54d8137416::after {
  content:"";
  box-sizing:border-box;
  border-radius:2px;
  transform:translateZ(-1px);
  width:100%;
  height:100%;
  position:absolute;
  top:3px;
  left:0px;
  transition:linear 0.07s transform;
  background:inherit;
  filter:brightness(70%);
  z-index:0
 }
 
 *.btn_hash_54d8137416:hover:not(:disabled) {
  transform:translateY(-1px) translateZ(-1px)
 }
 
 *.btn_hash_54d8137416:hover:not(:disabled)::after {
  transform:translateY(1px) translateZ(-1px)
 }
 
 *.btn_hash_54d8137416:active:hover:not(:disabled),*.btn_hash_54d8137416.pressed_hash_54d8137416:hover {
  transform:translateY(2px) translateZ(-2px)
 }
 
 *.btn_hash_54d8137416:active:hover:not(:disabled)::after,*.btn_hash_54d8137416.pressed_hash_54d8137416:hover::after {
  transform:translateY(-2px) translateZ(-2px)
 }
 
 *.btn_hash_54d8137416:disabled::after {
  background:repeating-linear-gradient(90deg,var(--btn-bg_hash_54d8137416),var(--btn-bg_hash_54d8137416) var(--gap_hash_54d8137416),var(--dsbl_hash_54d8137416) var(--gap_hash_54d8137416),var(--dsbl_hash_54d8137416) var(--fill_hash_54d8137416))
 }
 
 *.btn_hash_54d8137416:focus-visible {
  outline-offset:-6px;
  outline:4.0px solid var(--ol_hash_54d8137416)
 }
 
 *.btn_hash_54d8137416:active:not(:disabled),*.btn_hash_54d8137416.active_hash_54d8137416:not(:disabled),*.btn_hash_54d8137416.pressed_hash_54d8137416 {
  transform:translateY(3px);
  border-radius:2px
 }
 
 *.btn_hash_54d8137416:active:not(:disabled)::after,*.btn_hash_54d8137416.active_hash_54d8137416:not(:disabled)::after,*.btn_hash_54d8137416.pressed_hash_54d8137416::after {
  transform:translateY(-3px) translateZ(-1px)
 }
 
 *.btn_hash_54d8137416 u {
  text-underline-position:from-font;
  text-underline-offset:1px;
  transition:var(--anim-style_hash_54d8137416) var(--slow_hash_54d8137416) text-decoration-color
 }
 
 *.btn_hash_54d8137416:disabled u {
  text-decoration:none
 }
 
 *.btn_hash_54d8137416 u {
  text-decoration-color:var(--ol_hash_54d8137416)
 }
 
 *.btn_hash_54d8137416:focus-visible u {
  text-decoration-color:var(--btn-bg_hash_54d8137416)
 }
 
 *.btn_hash_54d8137416.primary_hash_54d8137416 {
  --dsbl_hash_54d8137416:#357eac;
  --ol_hash_54d8137416:rgba(255 255 255 / 0.7)
 }
 
 *.btn_hash_54d8137416.warn_hash_54d8137416 {
  --dsbl_hash_54d8137416:#ffdd79;
  --ol_hash_54d8137416:rgba(255 255 255 / 0.7)
 }
 
 *.btn_hash_54d8137416.danger_hash_54d8137416 {
  --dsbl_hash_54d8137416:#b23808;
  --ol_hash_54d8137416:rgba(255 255 255 / 0.7)
 }
 
 *.btn_hash_54d8137416.safe_hash_54d8137416 {
  --dsbl_hash_54d8137416:#549259;
  --ol_hash_54d8137416:rgba(255 255 255 / 0.7)
 }
 
 *.btn_hash_54d8137416.subtle_hash_54d8137416:not(:focus-visible) {
  outline-offset:-2px;
  outline:var(--extreme_primary_border_hash_54d8137416) solid 2px
 }
 
 *.btn_hash_54d8137416.subtle_hash_54d8137416 {
  outline-offset:-4px;
  border-radius:4px;
  --ol_hash_54d8137416:#1BA1F2;
  --btn-bg_hash_54d8137416:var(--extreme_primary_border_hash_54d8137416);
  --dsbl_hash_54d8137416:var(--disabled-stripes_hash_54d8137416)
 }
 
 *.btn_hash_54d8137416.subtle_hash_54d8137416::after {
  background:var(--extreme_primary_border_hash_54d8137416);
  filter:unset
 }
 
 *.btn_hash_54d8137416.small_hash_54d8137416 {
  font-size:0.7em;
  font-weight:bold;
  padding:3px 5px;
  text-transform:uppercase
 }
 
 *.btn_hash_54d8137416.small_hash_54d8137416 u {
  text-decoration-thickness:2px;
  text-underline-position:unset;
  text-underline-offset:unset
 }
 
 div.btn-group-hz_hash_54d8137416 {
  display:flex;
  width:max-content
 }
 
 div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:first-child,div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:first-child::after {
  border-top-right-radius:0;
  border-bottom-right-radius:0
 }
 
 div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:last-child,div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:last-child::after {
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  box-shadow:inset 1px 0 0 0px var(--ol_hash_54d8137416)
 }
 
 div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:not(:last-child):not(:first-child),div.btn-group-hz_hash_54d8137416 *.btn_hash_54d8137416:not(:last-child):not(:first-child)::after {
  border-radius:0;
  box-shadow:inset 1px 0 0 0px var(--ol_hash_54d8137416)
 }
 
 div.btn-group-vrt_hash_54d8137416 {
  display:flex;
  flex-direction:column;
  width:max-content
 }
 
 div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:first-child,div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:first-child::after {
  border-bottom-right-radius:0;
  border-bottom-left-radius:0
 }
 
 div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:last-child,div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:last-child::after {
  border-top-left-radius:0;
  border-top-right-radius:0
 }
 
 div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:not(:last-child):not(:first-child),div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:not(:last-child):not(:first-child)::after {
  border-radius:0;
  box-shadow:inset 0 1px 0 0px var(--ol_hash_54d8137416)
 }
 
 div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:not(:last-child) {
  margin-bottom:0px
 }
 
 div.btn-group-vrt_hash_54d8137416 *.btn_hash_54d8137416:not(:first-child) {
  margin-top:0px
 }
 
 *.btn_hash_54d8137416::before {
  content:"";
  display:inline-flex;
  justify-content:center;
  float:right;
  width:0px;
  transition:linear var(--slow_hash_54d8137416) width,linear var(--slow_hash_54d8137416) margin-left;
  position:relative
 }
 
 *.btn_hash_54d8137416.thinking_hash_54d8137416::before {
  width:1em;
  animation:bonsai-kado-button-thinking 0.5s linear infinite;
  margin-left:0.4em
 }
 
 @keyframes bonsai-kado-button-thinking{
  0%,100% {
   content:"⠋"
  }
  
  25% {
   content:"⠙"
  }
  
  50% {
   content:"⠴"
  }
  
  75% {
   content:"⠦"
  }
  
 }
 
 
}|}
  let (__type_info_for_ppx_css :
    ?rewrite:(string * string) list ->
      ?dont_hash:string list ->
        ?dont_hash_prefixes:string list -> string -> unit)
    =
    fun ?rewrite:_ ->
      fun ?dont_hash:_ -> fun ?dont_hash_prefixes:_ -> fun _ -> ()
  module type S  =
    sig
      module Variables :
      sig
        val set :
          ?anim_style:string ->
            ?btn_bg:string ->
              ?disabled_stripes:string ->
                ?dsbl:string ->
                  ?extreme_primary_border:string ->
                    ?fast:string ->
                      ?fill:string ->
                        ?gap:string ->
                          ?ol:string ->
                            ?slow:string -> unit -> Virtual_dom.Vdom.Attr.t
      end
      module For_referencing :
      sig
        val active : string
        val anim_style : string
        val btn : string
        val btn_bg : string
        val btn_group_hz : string
        val btn_group_vrt : string
        val danger : string
        val disabled_stripes : string
        val dsbl : string
        val extreme_primary_border : string
        val fast : string
        val fill : string
        val gap : string
        val ol : string
        val pressed : string
        val primary : string
        val safe : string
        val slow : string
        val small : string
        val subtle : string
        val thinking : string
        val warn : string
      end
      val active : Virtual_dom.Vdom.Attr.t
      val btn : Virtual_dom.Vdom.Attr.t
      val btn_group_hz : Virtual_dom.Vdom.Attr.t
      val btn_group_vrt : Virtual_dom.Vdom.Attr.t
      val danger : Virtual_dom.Vdom.Attr.t
      val pressed : Virtual_dom.Vdom.Attr.t
      val primary : Virtual_dom.Vdom.Attr.t
      val safe : Virtual_dom.Vdom.Attr.t
      val small : Virtual_dom.Vdom.Attr.t
      val subtle : Virtual_dom.Vdom.Attr.t
      val thinking : Virtual_dom.Vdom.Attr.t
      val warn : Virtual_dom.Vdom.Attr.t
    end
  type t = (module S)
  module Default : S =
    struct
      module Variables =
        struct
          let set ?anim_style  ?btn_bg  ?disabled_stripes  ?dsbl 
            ?extreme_primary_border  ?fast  ?fill  ?gap  ?ol  ?slow  () =
            let ppx_css_acc__001_ = [] in
            let ppx_css_acc__001_ =
              match anim_style with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--anim-style_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match btn_bg with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--btn-bg_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match disabled_stripes with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--disabled-stripes_hash_54d8137416|},
                    ppx_css_value__002_)
                  :: ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match dsbl with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--dsbl_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match extreme_primary_border with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--extreme_primary_border_hash_54d8137416|},
                    ppx_css_value__002_)
                  :: ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match fast with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--fast_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match fill with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--fill_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match gap with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--gap_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match ol with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--ol_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            let ppx_css_acc__001_ =
              match slow with
              | None -> ppx_css_acc__001_
              | Some ppx_css_value__002_ ->
                  ({|--slow_hash_54d8137416|}, ppx_css_value__002_) ::
                  ppx_css_acc__001_ in
            Virtual_dom.Vdom.Attr.__css_vars_no_kebabs ppx_css_acc__001_
        end
      module For_referencing =
        struct
          let subtle = {|subtle_hash_54d8137416|}
          let btn = {|btn_hash_54d8137416|}
          let pressed = {|pressed_hash_54d8137416|}
          let warn = {|warn_hash_54d8137416|}
          let thinking = {|thinking_hash_54d8137416|}
          let btn_group_vrt = {|btn-group-vrt_hash_54d8137416|}
          let small = {|small_hash_54d8137416|}
          let btn_group_hz = {|btn-group-hz_hash_54d8137416|}
          let active = {|active_hash_54d8137416|}
          let safe = {|safe_hash_54d8137416|}
          let danger = {|danger_hash_54d8137416|}
          let primary = {|primary_hash_54d8137416|}
          let dsbl = {|--dsbl_hash_54d8137416|}
          let anim_style = {|--anim-style_hash_54d8137416|}
          let disabled_stripes = {|--disabled-stripes_hash_54d8137416|}
          let gap = {|--gap_hash_54d8137416|}
          let fast = {|--fast_hash_54d8137416|}
          let slow = {|--slow_hash_54d8137416|}
          let ol = {|--ol_hash_54d8137416|}
          let btn_bg = {|--btn-bg_hash_54d8137416|}
          let extreme_primary_border =
            {|--extreme_primary_border_hash_54d8137416|}
          let fill = {|--fill_hash_54d8137416|}
        end
      let subtle = Virtual_dom.Vdom.Attr.class_ {|subtle_hash_54d8137416|}
      let btn = Virtual_dom.Vdom.Attr.class_ {|btn_hash_54d8137416|}
      let pressed = Virtual_dom.Vdom.Attr.class_ {|pressed_hash_54d8137416|}
      let warn = Virtual_dom.Vdom.Attr.class_ {|warn_hash_54d8137416|}
      let thinking =
        Virtual_dom.Vdom.Attr.class_ {|thinking_hash_54d8137416|}
      let btn_group_vrt =
        Virtual_dom.Vdom.Attr.class_ {|btn-group-vrt_hash_54d8137416|}
      let small = Virtual_dom.Vdom.Attr.class_ {|small_hash_54d8137416|}
      let btn_group_hz =
        Virtual_dom.Vdom.Attr.class_ {|btn-group-hz_hash_54d8137416|}
      let active = Virtual_dom.Vdom.Attr.class_ {|active_hash_54d8137416|}
      let safe = Virtual_dom.Vdom.Attr.class_ {|safe_hash_54d8137416|}
      let danger = Virtual_dom.Vdom.Attr.class_ {|danger_hash_54d8137416|}
      let primary = Virtual_dom.Vdom.Attr.class_ {|primary_hash_54d8137416|}
    end 
  include Default
  let default : t = (module Default) end
OCaml

Innovation. Community. Security.