orbcafe-ui 3.1.9 → 3.2.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.
package/dist/orbis.css CHANGED
@@ -2812,6 +2812,219 @@ button.orb-app-header-locale:hover,
2812
2812
  border-radius: var(--orb-shell-radius);
2813
2813
  }
2814
2814
 
2815
+ /* 作曲栏模型席:触发器贴在发送按钮左侧,菜单向上展开。目录由宿主传入。 */
2816
+ .orb-omph-model {
2817
+ min-width: 0;
2818
+ }
2819
+
2820
+ .orb-omph-model-trigger {
2821
+ display: flex;
2822
+ align-items: center;
2823
+ gap: 4px;
2824
+ max-width: min(360px, 46vw);
2825
+ height: 28px;
2826
+ min-width: 0;
2827
+ padding: 0 4px 0 8px;
2828
+ border: 0;
2829
+ border-radius: var(--orb-r);
2830
+ background: transparent;
2831
+ color: var(--orb-fg);
2832
+ font: 500 13px/20px var(--orb-font);
2833
+ cursor: pointer;
2834
+ }
2835
+
2836
+ .orb-omph-model-trigger:hover:not(:disabled) {
2837
+ background: var(--orb-hover);
2838
+ }
2839
+
2840
+ .orb-omph-model-trigger:focus-visible {
2841
+ outline: 2px solid var(--orb-focus-solid);
2842
+ outline-offset: 1px;
2843
+ }
2844
+
2845
+ .orb-omph-model-trigger:disabled {
2846
+ color: var(--orb-disabled-fg);
2847
+ cursor: default;
2848
+ }
2849
+
2850
+ .orb-omph-model-name,
2851
+ .orb-omph-model-effort {
2852
+ min-width: 0;
2853
+ overflow: hidden;
2854
+ text-overflow: ellipsis;
2855
+ white-space: nowrap;
2856
+ }
2857
+
2858
+ .orb-omph-model-effort {
2859
+ flex-shrink: 1;
2860
+ color: var(--orb-muted);
2861
+ }
2862
+
2863
+ .orb-omph-model-chevron {
2864
+ flex: none;
2865
+ color: var(--orb-muted);
2866
+ transition: transform var(--orb-t-fast);
2867
+ }
2868
+
2869
+ .orb-omph-model-trigger[aria-expanded="true"] .orb-omph-model-chevron {
2870
+ transform: rotate(180deg);
2871
+ }
2872
+
2873
+ .orb-omph-model-menu {
2874
+ position: fixed;
2875
+ z-index: 1302;
2876
+ display: flex;
2877
+ flex-direction: column;
2878
+ width: max-content;
2879
+ min-width: min(240px, calc(100vw - 32px));
2880
+ max-width: min(420px, calc(100vw - 32px));
2881
+ max-height: min(360px, calc(100vh - 96px));
2882
+ padding: 4px;
2883
+ overflow: hidden;
2884
+ border: 1px solid var(--orb-border);
2885
+ border-radius: var(--orb-r);
2886
+ background: var(--orb-canvas);
2887
+ box-shadow: var(--orb-shadow-2);
2888
+ color: var(--orb-fg);
2889
+ font: 500 13px/20px var(--orb-font);
2890
+ }
2891
+
2892
+ .orb-omph-model-cell,
2893
+ .orb-omph-model-option {
2894
+ display: flex;
2895
+ align-items: center;
2896
+ gap: 6px;
2897
+ width: 100%;
2898
+ min-height: 34px;
2899
+ padding: 5px 8px;
2900
+ border: 0;
2901
+ border-radius: 8px;
2902
+ background: transparent;
2903
+ color: inherit;
2904
+ font: inherit;
2905
+ text-align: left;
2906
+ cursor: pointer;
2907
+ }
2908
+
2909
+ .orb-omph-model-cell:hover,
2910
+ .orb-omph-model-cell:focus-visible,
2911
+ .orb-omph-model-option:hover,
2912
+ .orb-omph-model-option:focus-visible,
2913
+ .orb-omph-model-option[data-active] {
2914
+ background: var(--orb-hover);
2915
+ outline: none;
2916
+ }
2917
+
2918
+ .orb-omph-model-cell-label {
2919
+ flex: none;
2920
+ }
2921
+
2922
+ .orb-omph-model-cell-value,
2923
+ .orb-omph-model-option-name {
2924
+ min-width: 0;
2925
+ overflow: hidden;
2926
+ text-overflow: ellipsis;
2927
+ white-space: nowrap;
2928
+ }
2929
+
2930
+ .orb-omph-model-cell-value {
2931
+ flex: 1;
2932
+ text-align: right;
2933
+ color: var(--orb-muted);
2934
+ }
2935
+
2936
+ .orb-omph-model-option-name {
2937
+ flex: 1;
2938
+ }
2939
+
2940
+ .orb-omph-model-cell-chevron,
2941
+ .orb-omph-model-check {
2942
+ flex: none;
2943
+ color: var(--orb-muted);
2944
+ }
2945
+
2946
+ .orb-omph-model-check {
2947
+ display: grid;
2948
+ width: 14px;
2949
+ height: 14px;
2950
+ place-items: center;
2951
+ color: var(--orb-fg);
2952
+ }
2953
+
2954
+ .orb-omph-model-search {
2955
+ position: relative;
2956
+ flex: none;
2957
+ margin: 2px 0 4px;
2958
+ }
2959
+
2960
+ .orb-omph-model-search-input {
2961
+ width: 100%;
2962
+ height: 32px;
2963
+ padding: 0 32px 0 8px;
2964
+ border: 0;
2965
+ border-radius: 8px;
2966
+ background: transparent;
2967
+ color: var(--orb-fg);
2968
+ font: 500 12px/20px var(--orb-font);
2969
+ outline: none;
2970
+ }
2971
+
2972
+ .orb-omph-model-search-input::placeholder {
2973
+ color: var(--orb-muted);
2974
+ }
2975
+
2976
+ .orb-omph-model-search-input:focus-visible {
2977
+ background: var(--orb-hover);
2978
+ }
2979
+
2980
+ .orb-omph-model-search-clear {
2981
+ position: absolute;
2982
+ top: 50%;
2983
+ right: 4px;
2984
+ display: inline-flex;
2985
+ align-items: center;
2986
+ justify-content: center;
2987
+ width: 24px;
2988
+ height: 24px;
2989
+ padding: 0;
2990
+ border: 0;
2991
+ border-radius: 999px;
2992
+ background: transparent;
2993
+ color: var(--orb-muted);
2994
+ cursor: pointer;
2995
+ transform: translateY(-50%);
2996
+ }
2997
+
2998
+ .orb-omph-model-search-clear:hover,
2999
+ .orb-omph-model-search-clear:focus-visible {
3000
+ background: var(--orb-hover);
3001
+ color: var(--orb-fg);
3002
+ outline: none;
3003
+ }
3004
+
3005
+ .orb-omph-model-list {
3006
+ min-height: 0;
3007
+ overflow: auto;
3008
+ }
3009
+
3010
+ .orb-omph-model-group {
3011
+ padding: 6px 8px 2px;
3012
+ color: var(--orb-muted);
3013
+ font: 500 11px/16px var(--orb-font);
3014
+ }
3015
+
3016
+ .orb-omph-model-empty {
3017
+ padding: 8px;
3018
+ color: var(--orb-muted);
3019
+ font: 500 12px/18px var(--orb-font);
3020
+ }
3021
+
3022
+ @media (prefers-reduced-motion: reduce) {
3023
+ .orb-omph-model-chevron {
3024
+ transition: none;
3025
+ }
3026
+ }
3027
+
2815
3028
  /* Composer takeover while a tool waits for a one-shot decision. */
2816
3029
  .orb-omph-approval {
2817
3030
  --orb-omph-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbcafe-ui",
3
- "version": "3.1.9",
3
+ "version": "3.2.0",
4
4
  "description": "ORBCAFE UI components — ORBIS brand system, MUI-free",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",