@flux-ui/components 3.0.0-next.26 → 3.0.0-next.28

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 (49) hide show
  1. package/dist/component/FluxAnimatedColors.vue.d.ts +1 -0
  2. package/dist/component/FluxBorderShine.vue.d.ts +1 -1
  3. package/dist/component/FluxFormInput.vue.d.ts +1 -0
  4. package/dist/component/FluxGallery.vue.d.ts +2 -2
  5. package/dist/component/FluxItemActions.vue.d.ts +4 -1
  6. package/dist/component/FluxItemContent.vue.d.ts +4 -1
  7. package/dist/component/FluxItemMedia.vue.d.ts +5 -1
  8. package/dist/component/FluxPrompt.vue.d.ts +2 -0
  9. package/dist/component/FluxTableCell.vue.d.ts +1 -0
  10. package/dist/component/primitive/SelectBase.vue.d.ts +5 -3
  11. package/dist/component/primitive/SliderBase.vue.d.ts +2 -2
  12. package/dist/composable/private/index.d.ts +0 -1
  13. package/dist/index.css +39 -23
  14. package/dist/index.js +3909 -811
  15. package/dist/index.js.map +1 -1
  16. package/package.json +8 -8
  17. package/src/component/FluxAnimatedColors.vue +6 -4
  18. package/src/component/FluxAutoGrid.vue +1 -1
  19. package/src/component/FluxContainer.vue +1 -1
  20. package/src/component/FluxExpandable.vue +1 -1
  21. package/src/component/FluxFader.vue +2 -1
  22. package/src/component/FluxFilterOptionAsync.vue +1 -2
  23. package/src/component/FluxFilterOptionsAsync.vue +1 -2
  24. package/src/component/FluxFormInput.vue +7 -0
  25. package/src/component/FluxFormSelectAsync.vue +2 -2
  26. package/src/component/FluxGrid.vue +1 -1
  27. package/src/component/FluxIcon.vue +0 -12
  28. package/src/component/FluxItemActions.vue +6 -2
  29. package/src/component/FluxItemContent.vue +5 -1
  30. package/src/component/FluxItemMedia.vue +10 -1
  31. package/src/component/FluxPressable.vue +1 -1
  32. package/src/component/FluxStack.vue +1 -1
  33. package/src/component/FluxTabBar.vue +2 -1
  34. package/src/component/FluxTableCell.vue +3 -1
  35. package/src/component/primitive/AnchorPopup.vue +1 -1
  36. package/src/component/primitive/FilterItem.vue +1 -1
  37. package/src/component/primitive/SelectBase.vue +2 -1
  38. package/src/composable/private/index.ts +0 -1
  39. package/src/css/component/Badge.module.scss +1 -1
  40. package/src/css/component/Icon.module.scss +0 -17
  41. package/src/css/component/Item.module.scss +18 -4
  42. package/src/css/component/Pane.module.scss +10 -1
  43. package/src/css/component/Tab.module.scss +7 -0
  44. package/src/css/component/Table.module.scss +1 -1
  45. package/src/css/typography.scss +5 -1
  46. package/src/css/variables.scss +1 -1
  47. package/src/util/createDialogRenderer.ts +3 -1
  48. package/dist/composable/private/useLoaded.d.ts +0 -5
  49. package/src/composable/private/useLoaded.ts +0 -21
@@ -4,6 +4,7 @@ type __VLS_Props = {
4
4
  readonly incrementor?: number;
5
5
  readonly opacity?: number;
6
6
  readonly seed?: number;
7
+ readonly static?: boolean;
7
8
  };
8
9
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {
9
10
  canvas: HTMLCanvasElement;
@@ -44,9 +44,9 @@ declare const _default: DefineComponent<ExtractPropTypes<{
44
44
  type: NumberConstructor;
45
45
  };
46
46
  }>> & Readonly<{}>, {
47
- colors: string[];
48
47
  duration: number;
49
48
  width: number;
49
+ colors: string[];
50
50
  offset: number;
51
51
  radius: string | number;
52
52
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -7,6 +7,7 @@ type __VLS_Props = {
7
7
  readonly iconTrailing?: FluxIconName;
8
8
  readonly disabled?: boolean;
9
9
  readonly isCondensed?: boolean;
10
+ readonly isLoading?: boolean;
10
11
  readonly isReadonly?: boolean;
11
12
  readonly isSecondary?: boolean;
12
13
  readonly max?: string | number;
@@ -19,11 +19,11 @@ declare function __VLS_template(): {
19
19
  };
20
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
21
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
- delete: (args_0: number) => any;
23
22
  upload: (args_0: File[]) => any;
23
+ delete: (args_0: number) => any;
24
24
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onDelete?: (args_0: number) => any;
26
25
  onUpload?: (args_0: File[]) => any;
26
+ onDelete?: (args_0: number) => any;
27
27
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
28
28
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
29
29
  export default _default;
@@ -1,4 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly isCenter?: boolean;
4
+ };
2
5
  declare function __VLS_template(): {
3
6
  attrs: Partial<{}>;
4
7
  slots: {
@@ -8,7 +11,7 @@ declare function __VLS_template(): {
8
11
  rootEl: any;
9
12
  };
10
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
14
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
12
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
16
  export default _default;
14
17
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly isCenter?: boolean;
4
+ };
2
5
  declare function __VLS_template(): {
3
6
  attrs: Partial<{}>;
4
7
  slots: {
@@ -8,7 +11,7 @@ declare function __VLS_template(): {
8
11
  rootEl: HTMLDivElement;
9
12
  };
10
13
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
14
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
12
15
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
16
  export default _default;
14
17
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,8 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly isCenter?: boolean;
4
+ readonly size?: number;
5
+ };
2
6
  declare function __VLS_template(): {
3
7
  attrs: Partial<{}>;
4
8
  slots: {
@@ -8,7 +12,7 @@ declare function __VLS_template(): {
8
12
  rootEl: HTMLDivElement;
9
13
  };
10
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
15
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
12
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
17
  export default _default;
14
18
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -13,6 +13,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
13
13
  readonly iconTrailing?: FluxIconName;
14
14
  readonly disabled?: boolean;
15
15
  readonly isCondensed?: boolean;
16
+ readonly isLoading?: boolean;
16
17
  readonly isReadonly?: boolean;
17
18
  readonly isSecondary?: boolean;
18
19
  readonly max?: string | number;
@@ -53,6 +54,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
53
54
  readonly iconTrailing?: FluxIconName;
54
55
  readonly disabled?: boolean;
55
56
  readonly isCondensed?: boolean;
57
+ readonly isLoading?: boolean;
56
58
  readonly isReadonly?: boolean;
57
59
  readonly isSecondary?: boolean;
58
60
  readonly max?: string | number;
@@ -1,6 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
2
  type __VLS_Props = {
3
3
  readonly contentDirection?: 'column' | 'row';
4
+ readonly contentGap?: number;
4
5
  };
5
6
  declare function __VLS_template(): {
6
7
  attrs: Partial<{}>;
@@ -15,20 +15,20 @@ type __VLS_PublicProps = {
15
15
  } & __VLS_Props;
16
16
  declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
17
  close: () => any;
18
- deselect: (args_0: string | number) => any;
19
18
  search: (args_0: string) => any;
20
19
  select: (args_0: string | number) => any;
21
20
  open: () => any;
22
21
  "update:searchQuery": (value: string) => any;
23
22
  keyDown: (args_0: KeyboardEvent) => any;
23
+ deselect: (args_0: string | number) => any;
24
24
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
25
25
  onClose?: () => any;
26
- onDeselect?: (args_0: string | number) => any;
27
26
  onSearch?: (args_0: string) => any;
28
27
  onSelect?: (args_0: string | number) => any;
29
28
  onOpen?: () => any;
30
29
  "onUpdate:searchQuery"?: (value: string) => any;
31
30
  onKeyDown?: (args_0: KeyboardEvent) => any;
31
+ onDeselect?: (args_0: string | number) => any;
32
32
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
33
33
  anchor: {
34
34
  $: ComponentInternalInstance;
@@ -155,6 +155,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
155
155
  readonly iconTrailing?: FluxIconName;
156
156
  readonly disabled?: boolean;
157
157
  readonly isCondensed?: boolean;
158
+ readonly isLoading?: boolean;
158
159
  readonly isReadonly?: boolean;
159
160
  readonly isSecondary?: boolean;
160
161
  readonly max?: string | number;
@@ -195,6 +196,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
195
196
  readonly iconTrailing?: FluxIconName;
196
197
  readonly disabled?: boolean;
197
198
  readonly isCondensed?: boolean;
199
+ readonly isLoading?: boolean;
198
200
  readonly isReadonly?: boolean;
199
201
  readonly isSecondary?: boolean;
200
202
  readonly max?: string | number;
@@ -218,7 +220,6 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
218
220
  $data: {};
219
221
  $props: Partial<{}> & Omit<{
220
222
  readonly label?: string;
221
- readonly target?: string;
222
223
  readonly disabled?: boolean;
223
224
  readonly to?: FluxTo;
224
225
  readonly tabindex?: string | number;
@@ -226,6 +227,7 @@ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Compo
226
227
  readonly isLoading?: boolean;
227
228
  readonly href?: string;
228
229
  readonly rel?: string;
230
+ readonly target?: string;
229
231
  readonly iconLeading?: FluxIconName | null;
230
232
  readonly iconTrailing?: FluxIconName | null;
231
233
  readonly command?: string;
@@ -19,11 +19,11 @@ declare function __VLS_template(): {
19
19
  };
20
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
21
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
- update: (args_0: number) => any;
23
22
  dragging: (args_0: boolean) => any;
23
+ update: (args_0: number) => any;
24
24
  }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
25
- onUpdate?: (args_0: number) => any;
26
25
  onDragging?: (args_0: boolean) => any;
26
+ onUpdate?: (args_0: number) => any;
27
27
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
28
28
  root: HTMLDivElement;
29
29
  }, HTMLDivElement>;
@@ -1,3 +1,2 @@
1
1
  export { default as useFormSelect } from './useFormSelect';
2
- export { default as useLoaded } from './useLoaded';
3
2
  export { default as useTranslate } from './useTranslate';
package/dist/index.css CHANGED
@@ -59,7 +59,7 @@
59
59
  --background: var(--gray-50);
60
60
  --foreground: var(--gray-700);
61
61
  --foreground-prominent: var(--gray-900);
62
- --foreground-secondary: var(--gray-400);
62
+ --foreground-secondary: var(--gray-500);
63
63
  --surface: var(--gray-25);
64
64
  --surface-loader: rgb(from var(--gray-25) r g b / .75);
65
65
  --surface-stroke: var(--gray-200);
@@ -281,7 +281,7 @@
281
281
  color: var(--primary-600);
282
282
  text-decoration: underline;
283
283
  text-decoration-thickness: 1px;
284
- text-underline-offset: 4px;
284
+ text-underline-offset: 3px;
285
285
  }
286
286
  a:not([class]):hover, a[class=""]:hover {
287
287
  text-decoration: none;
@@ -289,6 +289,9 @@
289
289
  p {
290
290
  line-height: 1.6;
291
291
  }
292
+ small {
293
+ font-size: 14px;
294
+ }
292
295
  blockquote {
293
296
  position: relative;
294
297
  margin: 0 0 0 30px;
@@ -551,17 +554,6 @@
551
554
  display: inline-block;
552
555
  }
553
556
 
554
- .material-symbol-icon {
555
- display: inline-flex;
556
- color: currentColor;
557
- font-family: "Material Symbols Outlined", sans-serif;
558
- font-weight: 400;
559
- font-style: normal;
560
- user-select: none;
561
- -webkit-font-feature-settings: "liga";
562
- -webkit-font-smoothing: antialiased;
563
- }
564
-
565
557
  .icon-boxed {
566
558
  display: flex;
567
559
  height: 1em;
@@ -574,9 +566,6 @@
574
566
  .icon-boxed .icon {
575
567
  font-size: 0.45em;
576
568
  }
577
- .icon-boxed .material-symbol-icon {
578
- font-size: 0.5em;
579
- }
580
569
 
581
570
  .icon-boxed-default {
582
571
  box-shadow: var(--shadow-sm);
@@ -1097,12 +1086,21 @@
1097
1086
  --surface: var(--background);
1098
1087
  }
1099
1088
 
1089
+ :is(.pane-default, .pane-flat, .pane-well):is(button) {
1090
+ padding: 0;
1091
+ }
1092
+
1100
1093
  :is(.pane-default, .pane-flat, .pane-well):is(a, button) {
1101
- transition: box-shadow 210ms var(--swift-out);
1094
+ cursor: pointer;
1095
+ transition: 210ms var(--swift-out);
1096
+ transition-property: background, box-shadow;
1102
1097
  }
1103
1098
  :is(.pane-default, .pane-flat, .pane-well):is(a, button):hover {
1104
1099
  box-shadow: var(--shadow-lg);
1105
1100
  }
1101
+ :is(.pane-default, .pane-flat, .pane-well):is(a, button):active {
1102
+ box-shadow: var(--shadow-xs);
1103
+ }
1106
1104
 
1107
1105
  .pane-header {
1108
1106
  display: flex;
@@ -1861,7 +1859,7 @@
1861
1859
  }
1862
1860
 
1863
1861
  .badge-gray {
1864
- --color: var(--gray-700);
1862
+ --color: var(--foreground);
1865
1863
  }
1866
1864
  .badge-gray .badge-label {
1867
1865
  color: var(--foreground-prominent);
@@ -4006,7 +4004,7 @@ tfoot .table-cell {
4006
4004
  }
4007
4005
 
4008
4006
  .table-actions {
4009
- margin: -3px 0 -3px -3px;
4007
+ margin: -4px 0 -4px -3px;
4010
4008
  }
4011
4009
 
4012
4010
  .table-fill {
@@ -4634,6 +4632,7 @@ tfoot .table-cell {
4634
4632
  display: flex;
4635
4633
  flex-flow: row nowrap;
4636
4634
  gap: 21px;
4635
+ text-align: left;
4637
4636
  }
4638
4637
 
4639
4638
  .item-actions {
@@ -4643,22 +4642,24 @@ tfoot .table-cell {
4643
4642
  .item-content {
4644
4643
  display: flex;
4645
4644
  flex-flow: column;
4645
+ flex-grow: 1;
4646
4646
  gap: 3px;
4647
4647
  }
4648
4648
 
4649
4649
  .item-media {
4650
+ --size: 48px;
4650
4651
  flex-shrink: 0;
4651
4652
  }
4652
4653
 
4653
4654
  .item-media > img {
4654
- height: 48px;
4655
- width: 48px;
4655
+ height: var(--size);
4656
+ width: var(--size);
4656
4657
  object-fit: cover;
4657
4658
  object-position: center;
4658
4659
  }
4659
4660
 
4660
4661
  .item-media > .avatar {
4661
- font-size: 48px;
4662
+ font-size: var(--size);
4662
4663
  }
4663
4664
 
4664
4665
  .item-media > .icon {
@@ -4666,7 +4667,13 @@ tfoot .table-cell {
4666
4667
  }
4667
4668
 
4668
4669
  .item-media > .icon-boxed {
4669
- font-size: 48px;
4670
+ font-size: var(--size);
4671
+ }
4672
+
4673
+ .item-actions.is-center,
4674
+ .item-content.is-center,
4675
+ .item-media.is-center {
4676
+ align-self: center;
4670
4677
  }
4671
4678
 
4672
4679
  .item-stack {
@@ -4685,6 +4692,10 @@ tfoot .table-cell {
4685
4692
 
4686
4693
  .base-pane-structure > .item-stack > .item {
4687
4694
  margin: 0;
4695
+ }
4696
+
4697
+ .base-pane-structure:is(a, button):hover:has(> .item) {
4698
+ background-color: color-mix(in srgb, rgb(from var(--surface-hover) r g b/0.125), var(--surface));
4688
4699
  }.legend-horizontal {
4689
4700
  gap: 12px 21px;
4690
4701
  }
@@ -5726,6 +5737,11 @@ tfoot .table-cell {
5726
5737
  border-color: var(--foreground);
5727
5738
  }
5728
5739
  }
5740
+ .tab-bar-item:disabled, .tab-bar-item[aria-disabled=true] {
5741
+ box-shadow: none;
5742
+ opacity: 0.5;
5743
+ pointer-events: none;
5744
+ }
5729
5745
 
5730
5746
  .tab-bar-item-active {
5731
5747
  border-color: var(--primary-600);