@dataworkz/crystal 0.1.0-beta.2 → 0.1.0-beta.3

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.
@@ -225,7 +225,7 @@ dw-field.dw-field--inline:has(.dw-field__control :is(.p-inputtext-sm, .p-textare
225
225
  .dw-field__control > :first-child:not([dwFieldSuffix]) { flex: 1 1 auto; min-width: 0; }
226
226
  /* Switches, checkboxes and radios keep their own size — stretching one turns a toggle into a bar. */
227
227
  /* (Same specificity as the stretch rule above, plus the element, so it wins.) */
228
- .dw-field__control > :is(p-toggleswitch, p-checkbox, p-radiobutton):first-child:not([dwFieldSuffix]) { flex: none; }
228
+ .dw-field__control > :is(p-toggleswitch, p-checkbox, p-radiobutton, dw-switch, dw-checkbox, dw-radio):first-child:not([dwFieldSuffix]) { flex: none; }
229
229
  .dw-field__control > input,
230
230
  .dw-field__control > textarea,
231
231
  .dw-field__control > p-select,
@@ -676,3 +676,33 @@ body .dw-var-field .p-textarea {
676
676
  .config-form-body .toggle-label { margin: 0; cursor: pointer; }
677
677
  /* Host of a config form component inside .config-drawer-body: fill the drawer height. */
678
678
  .config-form-host { display: flex; flex: 1; flex-direction: column; min-height: 0; }
679
+
680
+ /* ── dw-select / dw-multiselect (components) ──
681
+ The host takes the screen's sizing (a width, `dw-w-full`, a grid track) and the PrimeNG control fills it; with no
682
+ width set, the host is as wide as the control would be on its own. */
683
+ .dw-select,
684
+ .dw-multiselect {
685
+ display: inline-flex;
686
+ min-width: 0;
687
+ max-width: 100%;
688
+ vertical-align: middle;
689
+ }
690
+ .dw-select > p-select,
691
+ .dw-multiselect > p-multiselect {
692
+ flex: 1 1 auto;
693
+ min-width: 0;
694
+ }
695
+ .dw-select.dw-select--fluid,
696
+ .dw-multiselect.dw-multiselect--fluid {
697
+ display: flex;
698
+ width: 100%;
699
+ }
700
+
701
+ /* ── dw-checkbox / dw-radio / dw-switch (components): the control and its label on one line (dw-check) ── */
702
+ .dw-checkbox__label--empty:empty,
703
+ .dw-radio__label--empty:empty { display: none; }
704
+
705
+ /* ── dw-number-input (component): sized by the screen like dw-select ── */
706
+ .dw-number-input { display: inline-flex; min-width: 0; max-width: 100%; vertical-align: middle; }
707
+ .dw-number-input > p-inputnumber { flex: 1 1 auto; min-width: 0; }
708
+ .dw-number-input.dw-number-input--fluid { display: flex; width: 100%; }
@@ -4,6 +4,8 @@
4
4
  *
5
5
  * Rules: colours only in tokens/primitives.css (everything else uses semantic tokens); font-family only in base.css.
6
6
  */
7
+ /* PrimeIcons (pi pi-*): crystal's dependency, so an app never installs or loads it itself. Its font is local. */
8
+ @import 'primeicons/primeicons.css';
7
9
  @import './tokens/primitives.css';
8
10
  @import './tokens/semantic.css';
9
11
  @import './tokens/semantic-dark.css';