@flux-ui/components 3.0.0-next.64 → 3.0.0-next.66

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.
@@ -3,7 +3,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onNavigate?: (args_0: number) => any;
5
5
  readonly onLimit?: (args_0: number) => any;
6
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onNavigate" | "onLimit"> & {
6
+ readonly "onUpdate:selected"?: (value: (string | number) | (string | number)[]) => any;
7
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onNavigate" | "onLimit" | "onUpdate:selected"> & ({
8
+ selected?: (string | number) | (string | number)[];
9
+ } & {
7
10
  readonly fillColumns?: number;
8
11
  readonly isBordered?: boolean;
9
12
  readonly isHoverable?: boolean;
@@ -14,9 +17,10 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
14
17
  readonly limits: number[];
15
18
  readonly page: number;
16
19
  readonly perPage: number;
20
+ readonly selectionMode?: "single" | "multiple";
17
21
  readonly total: number;
18
22
  readonly uniqueKey?: string;
19
- } & Partial<{}>> & PublicProps;
23
+ }) & Partial<{}>> & PublicProps;
20
24
  expose(exposed: ShallowUnwrapRef<{}>): void;
21
25
  attrs: any;
22
26
  slots: Readonly<{
@@ -27,6 +31,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
27
31
  readonly item: T;
28
32
  readonly items: T[];
29
33
  readonly total: number;
34
+ readonly isSelected: boolean;
30
35
  }) => VNode;
31
36
  filter(props: {
32
37
  readonly page: number;
@@ -61,6 +66,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
61
66
  readonly item: T;
62
67
  readonly items: T[];
63
68
  readonly total: number;
69
+ readonly isSelected: boolean;
64
70
  }) => VNode;
65
71
  filter(props: {
66
72
  readonly page: number;
@@ -88,7 +94,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
88
94
  }): VNode;
89
95
  colgroups(): VNode;
90
96
  };
91
- emit: ((evt: "navigate", args_0: number) => void) & ((evt: "limit", args_0: number) => void);
97
+ emit: (((evt: "navigate", args_0: number) => void) & ((evt: "limit", args_0: number) => void)) & ((evt: "update:selected", value: (string | number) | (string | number)[]) => void);
92
98
  }>) => VNode & {
93
99
  __ctx?: Awaited<typeof __VLS_setup>;
94
100
  };
@@ -1,4 +1,7 @@
1
1
  import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ type __VLS_Props = {
3
+ readonly isSelected?: boolean;
4
+ };
2
5
  declare function __VLS_template(): {
3
6
  attrs: Partial<{}>;
4
7
  slots: Readonly<{
@@ -10,7 +13,7 @@ declare function __VLS_template(): {
10
13
  rootEl: HTMLTableRowElement;
11
14
  };
12
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
- declare const __VLS_component: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLTableRowElement>;
16
+ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLTableRowElement>;
14
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
18
  export default _default;
16
19
  type __VLS_WithTemplateSlots<T, S> = T & {
package/dist/index.css CHANGED
@@ -767,7 +767,7 @@
767
767
  }
768
768
  .slide-over > .base-pane-structure > .pane-header + .tab-bar-default {
769
769
  position: sticky;
770
- top: 45px;
770
+ top: 60px;
771
771
  z-index: 100;
772
772
  }
773
773
  .slide-over > .base-pane-structure > .pane-header:has(.pane-header-caption > :is(span)) + .tab-bar-default {
@@ -2573,6 +2573,10 @@
2573
2573
  border: 0;
2574
2574
  }
2575
2575
 
2576
+ .layer-pane > .pane-header .button {
2577
+ margin: -9px -9px -9px 0;
2578
+ }
2579
+
2576
2580
  .layer-pane-secondary {
2577
2581
  display: flex;
2578
2582
  align-items: center;
@@ -2726,6 +2730,7 @@
2726
2730
  border-radius: var(--radius);
2727
2731
  box-shadow: var(--shadow-px);
2728
2732
  color: var(--foreground);
2733
+ outline: 0 solid transparent;
2729
2734
  transition: var(--transition-default);
2730
2735
  transition-property: background, border-color, outline-color, outline-offset;
2731
2736
  }
@@ -3090,6 +3095,7 @@
3090
3095
  display: inline-flex;
3091
3096
  flex-shrink: 0;
3092
3097
  gap: 12px;
3098
+ line-height: 20px;
3093
3099
  outline: 0;
3094
3100
  }
3095
3101
  .checkbox.is-disabled {
@@ -3115,16 +3121,16 @@
3115
3121
 
3116
3122
  .checkbox-element,
3117
3123
  .checkbox-native {
3118
- margin: 1px 0;
3119
- height: 22px;
3120
- width: 22px;
3124
+ margin: 1px 0 0;
3125
+ height: 20px;
3126
+ width: 20px;
3121
3127
  }
3122
3128
 
3123
3129
  .checkbox-element {
3124
3130
  position: relative;
3125
3131
  display: inline-flex;
3126
- height: 22px;
3127
- width: 22px;
3132
+ height: 20px;
3133
+ width: 20px;
3128
3134
  padding: 0;
3129
3135
  align-items: center;
3130
3136
  justify-content: center;
@@ -3156,6 +3162,7 @@
3156
3162
 
3157
3163
  .checkbox-native {
3158
3164
  position: absolute;
3165
+ cursor: pointer;
3159
3166
  opacity: 0;
3160
3167
  }
3161
3168
  @media (hover: hover) {
@@ -4807,6 +4814,9 @@
4807
4814
  margin: 0;
4808
4815
  padding: 0;
4809
4816
  }
4817
+ .table-row.is-selectable-row {
4818
+ cursor: pointer;
4819
+ }
4810
4820
 
4811
4821
  .table-cell {
4812
4822
  height: 0;
@@ -4850,11 +4860,24 @@ tbody .table-row:nth-child(even) .table-cell.is-striped {
4850
4860
  background: rgb(from var(--gray-50) r g b/0.5);
4851
4861
  }
4852
4862
 
4863
+ tbody .table-row.is-selected .table-cell {
4864
+ background: var(--primary-50);
4865
+ border-color: var(--primary-100);
4866
+ }
4867
+
4868
+ tbody .table-row.is-selected + .table-row .table-cell {
4869
+ border-top-color: var(--primary-100);
4870
+ }
4871
+
4853
4872
  @media (hover: hover) {
4854
4873
  tbody .table-row:hover .table-cell.is-hoverable,
4855
4874
  tbody .table-row:has(:focus-visible) .table-cell.is-hoverable {
4856
4875
  background: var(--gray-50);
4857
4876
  }
4877
+ tbody .table-row.is-selected:hover .table-cell.is-hoverable,
4878
+ tbody .table-row.is-selected:has(:focus-visible) .table-cell.is-hoverable {
4879
+ background: var(--primary-50);
4880
+ }
4858
4881
  }
4859
4882
  tfoot .table-cell {
4860
4883
  border-top: 1px solid var(--gray-100);
@@ -4872,6 +4895,10 @@ tfoot .table-cell {
4872
4895
  margin: -4px 0 -4px -3px;
4873
4896
  }
4874
4897
 
4898
+ .table-cell-selection {
4899
+ width: 0;
4900
+ }
4901
+
4875
4902
  .table-fill {
4876
4903
  pointer-events: none;
4877
4904
  }
@@ -4931,12 +4958,20 @@ tfoot .table-cell {
4931
4958
  }
4932
4959
  }
4933
4960
 
4961
+ .base-pane-structure:has(.table) {
4962
+ --table-spacing: 18px;
4963
+ }
4964
+
4965
+ .base-pane-structure .base-pane-structure {
4966
+ --table-spacing: 15px;
4967
+ }
4968
+
4934
4969
  .base-pane-structure > .table .table-cell:first-child .table-cell-content {
4935
- padding-left: 18px;
4970
+ padding-left: var(--table-spacing);
4936
4971
  }
4937
4972
 
4938
4973
  .base-pane-structure > .table .table-cell:last-child .table-cell-content {
4939
- padding-right: 18px;
4974
+ padding-right: var(--table-spacing);
4940
4975
  }
4941
4976
 
4942
4977
  .base-pane-structure > .table .table-actions {
@@ -4944,7 +4979,7 @@ tfoot .table-cell {
4944
4979
  }
4945
4980
 
4946
4981
  .base-pane-structure > .table :is(caption) {
4947
- padding: 12px 18px;
4982
+ padding: 12px var(--table-spacing);
4948
4983
  border-top: 1px solid var(--gray-100);
4949
4984
  }
4950
4985
 
@@ -6971,7 +7006,7 @@ tfoot .table-cell {
6971
7006
  .tab-bar-arrow {
6972
7007
  position: absolute;
6973
7008
  display: flex;
6974
- top: 3px;
7009
+ top: 2px;
6975
7010
  height: calc(100% - 6px);
6976
7011
  width: 30px;
6977
7012
  align-items: center;
@@ -6992,11 +7027,11 @@ tfoot .table-cell {
6992
7027
  }
6993
7028
 
6994
7029
  .tab-bar-arrow-start {
6995
- left: -6px;
7030
+ left: 3px;
6996
7031
  }
6997
7032
 
6998
7033
  .tab-bar-arrow-end {
6999
- right: -6px;
7034
+ right: 3px;
7000
7035
  }
7001
7036
 
7002
7037
  .base-tab-bar-tabs {