@fairfox/polly 0.71.0 → 0.72.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.
@@ -55,6 +55,191 @@
55
55
  }
56
56
  }
57
57
 
58
+ /* src/polly-ui/Dropdown.module.css */
59
+ @layer polly-components {
60
+ .dropdown_HX48zA {
61
+ position: relative;
62
+ display: inline-block;
63
+ }
64
+
65
+ .trigger_HX48zA {
66
+ display: inline-block;
67
+ }
68
+
69
+ .menu_HX48zA {
70
+ position: absolute;
71
+ inset: unset;
72
+ z-index: var(--polly-z-raised);
73
+ margin: var(--polly-space-xs) 0 0;
74
+ padding: var(--polly-space-xs) 0;
75
+ border: var(--polly-border-width-default) solid var(--polly-border);
76
+ border-radius: var(--polly-radius-md);
77
+ background-color: var(--polly-surface);
78
+ box-shadow: var(--polly-shadow-md);
79
+ box-sizing: border-box;
80
+ overflow-y: auto;
81
+ min-width: 160px;
82
+ max-height: 280px;
83
+ top: 100%;
84
+ left: 0;
85
+ }
86
+
87
+ .alignRight_HX48zA {
88
+ left: auto;
89
+ right: 0;
90
+ }
91
+ }
92
+
93
+ /* src/polly-ui/Layout.module.css */
94
+ @layer polly-components {
95
+ .layout_QgwWPg {
96
+ --l-cols: none;
97
+ --l-rows: none;
98
+ --l-gap: 0;
99
+ --l-p: 0;
100
+ --l-h: auto;
101
+ --l-mh: auto;
102
+ --l-mis: none;
103
+ --l-ji: stretch;
104
+ --l-ai: start;
105
+ --l-jc: normal;
106
+ --l-ac: normal;
107
+ --l-js: auto;
108
+ --l-as: auto;
109
+ --l-flow: row;
110
+ --l-arows: auto;
111
+ --l-acols: auto;
112
+ --l-col: auto;
113
+ display: grid;
114
+ box-sizing: border-box;
115
+ max-inline-size: var(--l-mis);
116
+ grid-template-columns: var(--l-cols);
117
+ grid-template-rows: var(--l-rows);
118
+ gap: var(--l-gap);
119
+ padding: var(--l-p);
120
+ height: var(--l-h);
121
+ min-height: var(--l-mh);
122
+ justify-items: var(--l-ji);
123
+ align-items: var(--l-ai);
124
+ justify-content: var(--l-jc);
125
+ align-content: var(--l-ac);
126
+ justify-self: var(--l-js);
127
+ align-self: var(--l-as);
128
+ grid-auto-flow: var(--l-flow);
129
+ grid-auto-rows: var(--l-arows);
130
+ grid-auto-columns: var(--l-acols);
131
+ grid-column: var(--l-col);
132
+ inline-size: 100%;
133
+ margin-inline-start: auto;
134
+ margin-inline-end: auto;
135
+ }
136
+
137
+ .inline_QgwWPg {
138
+ display: inline-grid;
139
+ inline-size: auto;
140
+ }
141
+
142
+ @media (max-width: 640px) {
143
+ .stackOnMobile_QgwWPg {
144
+ grid-template-columns: 1fr;
145
+ grid-auto-flow: row;
146
+ grid-column: auto;
147
+ }
148
+ }
149
+ }
150
+
151
+ /* src/polly-ui/Select.module.css */
152
+ @layer polly-components {
153
+ .select_daofbw {
154
+ display: inline-block;
155
+ }
156
+
157
+ .label_daofbw {
158
+ display: block;
159
+ margin-bottom: var(--polly-space-xs);
160
+ font-size: var(--polly-text-sm);
161
+ font-weight: var(--polly-weight-medium);
162
+ color: var(--polly-text-muted);
163
+ }
164
+
165
+ .trigger_daofbw {
166
+ display: inline-block;
167
+ padding: var(--polly-space-sm) var(--polly-space-md);
168
+ border: var(--polly-border-width-default) solid var(--polly-border);
169
+ border-radius: var(--polly-radius-sm);
170
+ background-color: var(--polly-surface);
171
+ font-family: inherit;
172
+ font-size: var(--polly-text-md);
173
+ color: var(--polly-text);
174
+ text-align: left;
175
+ cursor: pointer;
176
+ white-space: nowrap;
177
+ overflow: hidden;
178
+ text-overflow: ellipsis;
179
+ min-width: 140px;
180
+ }
181
+
182
+ .trigger_daofbw:disabled {
183
+ opacity: var(--polly-opacity-disabled);
184
+ cursor: not-allowed;
185
+ }
186
+
187
+ .placeholder_daofbw {
188
+ color: var(--polly-text-muted);
189
+ }
190
+
191
+ .actions_daofbw {
192
+ padding: var(--polly-space-xs) var(--polly-space-sm);
193
+ border-bottom: var(--polly-border-width-default) solid var(--polly-border);
194
+ }
195
+
196
+ .actionBtn_daofbw {
197
+ display: inline-block;
198
+ padding: var(--polly-space-xs) var(--polly-space-sm);
199
+ border-radius: var(--polly-radius-sm);
200
+ font-family: inherit;
201
+ font-size: var(--polly-text-xs);
202
+ color: var(--polly-accent);
203
+ cursor: pointer;
204
+ text-align: center;
205
+ background: none;
206
+ border: none;
207
+ width: 100%;
208
+ }
209
+
210
+ .actionBtn_daofbw:hover {
211
+ background-color: var(--polly-surface-sunken);
212
+ }
213
+
214
+ .option_daofbw {
215
+ display: block;
216
+ padding: var(--polly-space-sm) var(--polly-space-md);
217
+ font-family: inherit;
218
+ font-size: var(--polly-text-sm);
219
+ color: var(--polly-text);
220
+ text-align: left;
221
+ cursor: pointer;
222
+ background: none;
223
+ border: none;
224
+ width: 100%;
225
+ }
226
+
227
+ .option_daofbw:hover {
228
+ background-color: var(--polly-surface-sunken);
229
+ }
230
+
231
+ .optionSelected_daofbw {
232
+ background-color: color-mix(in srgb, var(--polly-accent) 8%, var(--polly-surface));
233
+ }
234
+
235
+ .optionCheck_daofbw {
236
+ accent-color: var(--polly-accent);
237
+ margin-right: var(--polly-space-sm);
238
+ vertical-align: middle;
239
+ pointer-events: none;
240
+ }
241
+ }
242
+
58
243
  /* src/polly-ui/Badge.module.css */
59
244
  @layer polly-components {
60
245
  .badge_cZd0Aw {
@@ -203,64 +388,6 @@
203
388
  }
204
389
  }
205
390
 
206
- /* src/polly-ui/Layout.module.css */
207
- @layer polly-components {
208
- .layout_QgwWPg {
209
- --l-cols: none;
210
- --l-rows: none;
211
- --l-gap: 0;
212
- --l-p: 0;
213
- --l-h: auto;
214
- --l-mh: auto;
215
- --l-mis: none;
216
- --l-ji: stretch;
217
- --l-ai: start;
218
- --l-jc: normal;
219
- --l-ac: normal;
220
- --l-js: auto;
221
- --l-as: auto;
222
- --l-flow: row;
223
- --l-arows: auto;
224
- --l-acols: auto;
225
- --l-col: auto;
226
- display: grid;
227
- box-sizing: border-box;
228
- max-inline-size: var(--l-mis);
229
- grid-template-columns: var(--l-cols);
230
- grid-template-rows: var(--l-rows);
231
- gap: var(--l-gap);
232
- padding: var(--l-p);
233
- height: var(--l-h);
234
- min-height: var(--l-mh);
235
- justify-items: var(--l-ji);
236
- align-items: var(--l-ai);
237
- justify-content: var(--l-jc);
238
- align-content: var(--l-ac);
239
- justify-self: var(--l-js);
240
- align-self: var(--l-as);
241
- grid-auto-flow: var(--l-flow);
242
- grid-auto-rows: var(--l-arows);
243
- grid-auto-columns: var(--l-acols);
244
- grid-column: var(--l-col);
245
- inline-size: 100%;
246
- margin-inline-start: auto;
247
- margin-inline-end: auto;
248
- }
249
-
250
- .inline_QgwWPg {
251
- display: inline-grid;
252
- inline-size: auto;
253
- }
254
-
255
- @media (max-width: 640px) {
256
- .stackOnMobile_QgwWPg {
257
- grid-template-columns: 1fr;
258
- grid-auto-flow: row;
259
- grid-column: auto;
260
- }
261
- }
262
- }
263
-
264
391
  /* src/polly-ui/Surface.module.css */
265
392
  @layer polly-components {
266
393
  .surface_pQCFqA {
@@ -361,6 +488,55 @@
361
488
  }
362
489
  }
363
490
 
491
+ /* src/polly-ui/Cluster.module.css */
492
+ @layer polly-components {
493
+ .cluster_pNLz5g {
494
+ --c-gap: 0;
495
+ --c-p: 0;
496
+ --c-jc: flex-start;
497
+ --c-ai: center;
498
+ display: flex;
499
+ box-sizing: border-box;
500
+ gap: var(--c-gap);
501
+ padding: var(--c-p);
502
+ justify-content: var(--c-jc);
503
+ align-items: var(--c-ai);
504
+ flex-wrap: wrap;
505
+ }
506
+
507
+ .inline_pNLz5g {
508
+ display: inline-flex;
509
+ }
510
+ }
511
+
512
+ /* src/polly-ui/Code.module.css */
513
+ @layer polly-components {
514
+ .code_Vc8yiw {
515
+ font-family: var(--polly-font-mono);
516
+ font-size: var(--polly-text-sm);
517
+ padding: .1em var(--polly-space-xs);
518
+ border-radius: var(--polly-radius-sm);
519
+ background-color: var(--polly-surface-sunken);
520
+ color: var(--polly-text);
521
+ word-break: break-word;
522
+ }
523
+
524
+ .block_Vc8yiw {
525
+ padding: var(--polly-space-md);
526
+ border-radius: var(--polly-radius-md);
527
+ background-color: var(--polly-surface-sunken);
528
+ overflow-x: auto;
529
+ margin: 0;
530
+ }
531
+
532
+ .block_Vc8yiw code {
533
+ font-family: var(--polly-font-mono);
534
+ font-size: var(--polly-text-sm);
535
+ color: var(--polly-text);
536
+ white-space: pre;
537
+ }
538
+ }
539
+
364
540
  /* src/polly-ui/Collapsible.module.css */
365
541
  @layer polly-components {
366
542
  .collapsible_sEhnPw {
@@ -530,133 +706,6 @@
530
706
  }
531
707
  }
532
708
 
533
- /* src/polly-ui/Dropdown.module.css */
534
- @layer polly-components {
535
- .dropdown_HX48zA {
536
- position: relative;
537
- display: inline-block;
538
- }
539
-
540
- .trigger_HX48zA {
541
- display: inline-block;
542
- }
543
-
544
- .menu_HX48zA {
545
- position: absolute;
546
- inset: unset;
547
- z-index: var(--polly-z-raised);
548
- margin: var(--polly-space-xs) 0 0;
549
- padding: var(--polly-space-xs) 0;
550
- border: var(--polly-border-width-default) solid var(--polly-border);
551
- border-radius: var(--polly-radius-md);
552
- background-color: var(--polly-surface);
553
- box-shadow: var(--polly-shadow-md);
554
- box-sizing: border-box;
555
- overflow-y: auto;
556
- min-width: 160px;
557
- max-height: 280px;
558
- top: 100%;
559
- left: 0;
560
- }
561
-
562
- .alignRight_HX48zA {
563
- left: auto;
564
- right: 0;
565
- }
566
- }
567
-
568
- /* src/polly-ui/Select.module.css */
569
- @layer polly-components {
570
- .select_daofbw {
571
- display: inline-block;
572
- }
573
-
574
- .label_daofbw {
575
- display: block;
576
- margin-bottom: var(--polly-space-xs);
577
- font-size: var(--polly-text-sm);
578
- font-weight: var(--polly-weight-medium);
579
- color: var(--polly-text-muted);
580
- }
581
-
582
- .trigger_daofbw {
583
- display: inline-block;
584
- padding: var(--polly-space-sm) var(--polly-space-md);
585
- border: var(--polly-border-width-default) solid var(--polly-border);
586
- border-radius: var(--polly-radius-sm);
587
- background-color: var(--polly-surface);
588
- font-family: inherit;
589
- font-size: var(--polly-text-md);
590
- color: var(--polly-text);
591
- text-align: left;
592
- cursor: pointer;
593
- white-space: nowrap;
594
- overflow: hidden;
595
- text-overflow: ellipsis;
596
- min-width: 140px;
597
- }
598
-
599
- .trigger_daofbw:disabled {
600
- opacity: var(--polly-opacity-disabled);
601
- cursor: not-allowed;
602
- }
603
-
604
- .placeholder_daofbw {
605
- color: var(--polly-text-muted);
606
- }
607
-
608
- .actions_daofbw {
609
- padding: var(--polly-space-xs) var(--polly-space-sm);
610
- border-bottom: var(--polly-border-width-default) solid var(--polly-border);
611
- }
612
-
613
- .actionBtn_daofbw {
614
- display: inline-block;
615
- padding: var(--polly-space-xs) var(--polly-space-sm);
616
- border-radius: var(--polly-radius-sm);
617
- font-family: inherit;
618
- font-size: var(--polly-text-xs);
619
- color: var(--polly-accent);
620
- cursor: pointer;
621
- text-align: center;
622
- background: none;
623
- border: none;
624
- width: 100%;
625
- }
626
-
627
- .actionBtn_daofbw:hover {
628
- background-color: var(--polly-surface-sunken);
629
- }
630
-
631
- .option_daofbw {
632
- display: block;
633
- padding: var(--polly-space-sm) var(--polly-space-md);
634
- font-family: inherit;
635
- font-size: var(--polly-text-sm);
636
- color: var(--polly-text);
637
- text-align: left;
638
- cursor: pointer;
639
- background: none;
640
- border: none;
641
- width: 100%;
642
- }
643
-
644
- .option_daofbw:hover {
645
- background-color: var(--polly-surface-sunken);
646
- }
647
-
648
- .optionSelected_daofbw {
649
- background-color: color-mix(in srgb, var(--polly-accent) 8%, var(--polly-surface));
650
- }
651
-
652
- .optionCheck_daofbw {
653
- accent-color: var(--polly-accent);
654
- margin-right: var(--polly-space-sm);
655
- vertical-align: middle;
656
- pointer-events: none;
657
- }
658
- }
659
-
660
709
  /* src/polly-ui/Skeleton.module.css */
661
710
  @layer polly-components {
662
711
  @keyframes pollyShimmer_gpBHJA {
@@ -736,6 +785,50 @@
736
785
  }
737
786
  }
738
787
 
788
+ /* src/polly-ui/Text.module.css */
789
+ @layer polly-components {
790
+ .text_75HKdQ {
791
+ color: var(--polly-text);
792
+ font-family: inherit;
793
+ }
794
+
795
+ .muted_75HKdQ {
796
+ color: var(--polly-text-muted);
797
+ }
798
+
799
+ .xs_75HKdQ {
800
+ font-size: var(--polly-text-xs);
801
+ }
802
+
803
+ .sm_75HKdQ {
804
+ font-size: var(--polly-text-sm);
805
+ }
806
+
807
+ .md_75HKdQ {
808
+ font-size: var(--polly-text-md);
809
+ }
810
+
811
+ .lg_75HKdQ {
812
+ font-size: var(--polly-text-lg);
813
+ }
814
+
815
+ .xl_75HKdQ {
816
+ font-size: var(--polly-text-xl);
817
+ }
818
+
819
+ .normal_75HKdQ {
820
+ font-weight: var(--polly-weight-normal);
821
+ }
822
+
823
+ .medium_75HKdQ {
824
+ font-weight: var(--polly-weight-medium);
825
+ }
826
+
827
+ .bold_75HKdQ {
828
+ font-weight: var(--polly-weight-bold);
829
+ }
830
+ }
831
+
739
832
  /* src/polly-ui/TextInput.module.css */
740
833
  @layer polly-components {
741
834
  .input_ez4_Vg {
@@ -8,11 +8,14 @@
8
8
  * the default look; redefine variables to re-theme.
9
9
  */
10
10
  export { ActionForm, type ActionFormProps } from "./ActionForm.tsx";
11
- export { ActionInput, type ActionInputProps, type ActionInputSaveOn, type ActionInputVariant, } from "./ActionInput.tsx";
11
+ export { ActionInput, type ActionInputProps, type ActionInputSaveOn, type ActionInputType, type ActionInputVariant, } from "./ActionInput.tsx";
12
+ export { ActionSelect, type ActionSelectProps } from "./ActionSelect.tsx";
12
13
  export { Badge, type BadgeProps, type BadgeVariant } from "./Badge.tsx";
13
14
  export { Button, type ButtonColor, type ButtonProps, type ButtonSize, type ButtonTier, } from "./Button.tsx";
14
15
  export { Card, type CardProps, type CardSlotProps } from "./Card.tsx";
15
16
  export { Checkbox, type CheckboxProps } from "./Checkbox.tsx";
17
+ export { Cluster, type ClusterProps } from "./Cluster.tsx";
18
+ export { Code, type CodeProps } from "./Code.tsx";
16
19
  export { Collapsible, type CollapsibleProps } from "./Collapsible.tsx";
17
20
  export { ConfirmDialog, type ConfirmOptions, confirm } from "./ConfirmDialog.tsx";
18
21
  export { Dropdown, type DropdownProps } from "./Dropdown.tsx";
@@ -23,6 +26,7 @@ export { Select, type SelectOption, type SelectProps } from "./Select.tsx";
23
26
  export { Skeleton, type SkeletonProps, type SkeletonVariant } from "./Skeleton.tsx";
24
27
  export { Surface, type SurfaceProps, type SurfaceVariant } from "./Surface.tsx";
25
28
  export { type Tab, Tabs, type TabsProps } from "./Tabs.tsx";
29
+ export { Text, type TextProps, type TextSize, type TextTone, type TextWeight, } from "./Text.tsx";
26
30
  export { TextInput, type TextInputProps } from "./TextInput.tsx";
27
31
  export { Toast, type ToastViewportProps } from "./Toast.tsx";
28
32
  export { Toggle, type ToggleProps } from "./Toggle.tsx";