sakana-element 2.4.0 → 2.4.2

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 (57) hide show
  1. package/dist/es/{Alert-DfLsJvQD.js → Alert-DdAShH-x.js} +2 -2
  2. package/dist/es/{Avatar-Ci4OKsv7.js → Avatar-BGTH7x40.js} +1 -1
  3. package/dist/es/{Badge-B4wEToK6.js → Badge-CYZ55qNe.js} +2 -2
  4. package/dist/es/{Breadcrumb-BFzww8jd.js → Breadcrumb-BTWTtzrN.js} +2 -2
  5. package/dist/es/{Button-DbFviVWb.js → Button-GsSCWg5x.js} +3 -3
  6. package/dist/es/{Card-ClRqKkc_.js → Card-BhgzwQqo.js} +1 -1
  7. package/dist/es/{ChatBubble-DFEV_lVI.js → ChatBubble-4F481Agj.js} +1 -1
  8. package/dist/es/{Checkbox-l86YI3Fr.js → Checkbox-C7vZGSTh.js} +3 -3
  9. package/dist/es/{Collapse-B67v6RSE.js → Collapse-CbcSQig5.js} +2 -2
  10. package/dist/es/{ConfigProvider-BCoGbcS5.js → ConfigProvider-K1UzjlRm.js} +20 -19
  11. package/dist/es/{Diff-BLiniLom.js → Diff-B747pgwb.js} +1 -1
  12. package/dist/es/{Divider-DDSOHv8G.js → Divider-BSu_1-AU.js} +1 -1
  13. package/dist/es/{Drawer-apeXw6EO.js → Drawer-I2lCgyba.js} +2 -2
  14. package/dist/es/{Dropdown-By9qIErf.js → Dropdown-B0J_c8Wv.js} +6 -6
  15. package/dist/es/{FileInput-CZ5jTfB_.js → FileInput-CFg1wpsH.js} +3 -3
  16. package/dist/es/{Filter-B_1zU4Dq.js → Filter-nA8j-62U.js} +3 -3
  17. package/dist/es/{Form-B_XDnSjK.js → Form-C1b8Igns.js} +4 -4
  18. package/dist/es/{Icon-D6qRB3pq.js → Icon-BulvH9Wm.js} +1 -1
  19. package/dist/es/{Indicator-C6Ip4dpP.js → Indicator-BbW4iUkh.js} +1 -1
  20. package/dist/es/Input-BUHFulIW.js +42 -0
  21. package/dist/es/{Kbd-DXNjs7at.js → Kbd-CeP2wkdE.js} +2 -2
  22. package/dist/es/{Link-08Ee61Fv.js → Link-Dks2bXo8.js} +1 -1
  23. package/dist/es/{Loading-ByI9mjss.js → Loading-DoBtVGWo.js} +18 -18
  24. package/dist/es/{Message-CGG-lV5I.js → Message-Ba_P4Wvy.js} +7 -7
  25. package/dist/es/{Notification-B4clKY5h.js → Notification-DzG8dLuk.js} +4 -4
  26. package/dist/es/{Overlay-6iPenJB1.js → Overlay-DeyTycv0.js} +1 -1
  27. package/dist/es/{Pixelate-A8J7jxDW.js → Pixelate-B21HKbSE.js} +1 -1
  28. package/dist/es/{Popconfirm-gcHGcOTz.js → Popconfirm-BqN3JxJ_.js} +5 -5
  29. package/dist/es/{Progress-DFUBJQ4X.js → Progress--6EJjbbM.js} +1 -1
  30. package/dist/es/{Radio-CLBa1XIM.js → Radio-CrdrvrFH.js} +3 -3
  31. package/dist/es/{Resizable-BWrFr2oj.js → Resizable-By3ijQf0.js} +1 -1
  32. package/dist/es/{Select-BtLqds1d.js → Select-Cq1Ucs_U.js} +34 -34
  33. package/dist/es/{Skeleton-CGUQv3nQ.js → Skeleton-ChCVgMSk.js} +1 -1
  34. package/dist/es/{Switch-CZJ-S77_.js → Switch-DURmSH-T.js} +3 -3
  35. package/dist/es/{Table-lHbxiyGq.js → Table-BE2f9u65.js} +1 -1
  36. package/dist/es/{Tooltip-CdPqNYdn.js → Tooltip-DR4Mc5Fh.js} +23 -23
  37. package/dist/es/{Validator-7ZT_nXDZ.js → Validator-BYn72MYn.js} +2 -2
  38. package/dist/es/{hooks-pU4JmsO3.js → hooks-dJGu-5DG.js} +73 -74
  39. package/dist/es/index.js +119 -107
  40. package/dist/es/utils-CnCdZsHG.js +155 -0
  41. package/dist/es/{vendor-DrBJKLFW.js → vendor-eombfMkP.js} +51 -53
  42. package/dist/index.css +1 -1
  43. package/dist/theme/Button.css +20 -0
  44. package/dist/types/components/Icon/index.d.ts +1 -0
  45. package/dist/types/components/Input/types.d.ts +2 -0
  46. package/dist/types/components/Select/index.d.ts +2 -0
  47. package/dist/types/core/index.d.ts +1 -1
  48. package/dist/types/hooks/index.d.ts +3 -0
  49. package/dist/types/hooks/useFocusController.d.ts +1 -1
  50. package/dist/types/hooks/useLocale.d.ts +9 -1
  51. package/dist/umd/index.css +1 -1
  52. package/dist/umd/index.css.gz +0 -0
  53. package/dist/umd/index.umd.cjs +3 -3
  54. package/dist/umd/index.umd.cjs.gz +0 -0
  55. package/package.json +1 -1
  56. package/dist/es/Input-bThwBbNZ.js +0 -42
  57. package/dist/es/utils-BXICIEsD.js +0 -139
@@ -248,6 +248,16 @@
248
248
  display: flex;
249
249
  width: 100%;
250
250
  margin-left: 0;
251
+ }
252
+ .px-button.is-block[data-v-0d682c9b]:focus-visible {
253
+ outline-offset: -4px;
254
+ }
255
+ .px-button.is-block[data-v-0d682c9b]:hover:not(.is-disabled):not(.is-loading) {
256
+ transform: none;
257
+ filter: drop-shadow(var(--px-shadow-offset-x) var(--px-shadow-offset-y) 0px var(--px-button-shadow-color));
258
+ }
259
+ .px-button.is-block[data-v-0d682c9b]:active:not(.is-disabled):not(.is-loading) {
260
+ transform: none;
251
261
  }
252
262
  /* Responsive variant - Viewport-adaptive sizing */
253
263
  .px-button.is-responsive[data-v-0d682c9b] {
@@ -1023,6 +1033,16 @@ html.dark .px-button[data-v-0d682c9b],
1023
1033
  display: flex;
1024
1034
  width: 100%;
1025
1035
  margin-left: 0;
1036
+ }
1037
+ .px-button.is-block[data-v-87af5dc3]:focus-visible {
1038
+ outline-offset: -4px;
1039
+ }
1040
+ .px-button.is-block[data-v-87af5dc3]:hover:not(.is-disabled):not(.is-loading) {
1041
+ transform: none;
1042
+ filter: drop-shadow(var(--px-shadow-offset-x) var(--px-shadow-offset-y) 0px var(--px-button-shadow-color));
1043
+ }
1044
+ .px-button.is-block[data-v-87af5dc3]:active:not(.is-disabled):not(.is-loading) {
1045
+ transform: none;
1026
1046
  }
1027
1047
  /* Responsive variant - Viewport-adaptive sizing */
1028
1048
  .px-button.is-responsive[data-v-87af5dc3] {
@@ -23,4 +23,5 @@ export * from './types';
23
23
  * Call this function before using PxIcon to ensure icons are available
24
24
  */
25
25
  export declare function registerDefaultPixelIcons(): void;
26
+ export { getIconNameMap, getPixelIcon, getRegisteredIconNames, hasPixelIcon, registerPixelIcon, registerPixelIcons, resolveIconName, } from '@sakana-element/utils';
26
27
  export { defaultPixelIcons } from './icons';
@@ -13,6 +13,8 @@ export interface InputProps {
13
13
  readonly?: boolean;
14
14
  autocomplete?: string;
15
15
  autofocus?: boolean;
16
+ prefixIcon?: string;
17
+ suffixIcon?: string;
16
18
  form?: string;
17
19
  }
18
20
  export interface InputEmits {
@@ -139,6 +139,8 @@ export declare const PxSelect: {
139
139
  readonly readonly?: boolean | undefined;
140
140
  readonly autocomplete?: string | undefined;
141
141
  readonly autofocus?: boolean | undefined;
142
+ readonly prefixIcon?: string | undefined;
143
+ readonly suffixIcon?: string | undefined;
142
144
  readonly form?: string | undefined;
143
145
  readonly onInput?: ((value: string) => any) | undefined;
144
146
  readonly onClear?: (() => any) | undefined;
@@ -1,5 +1,5 @@
1
1
  declare const installer: import('vue').Plugin;
2
2
  export * from '../components';
3
- export { type Theme, useSystemTheme, useTheme } from '../hooks';
3
+ export { type Theme, type UseDraggableOptions, type UseFocusControllerOptions, useClickOutside, useDraggable, useFocusTrap, useLocale, useSystemTheme, useTheme, } from '../hooks';
4
4
  export * from '../locale';
5
5
  export default installer;
@@ -8,6 +8,9 @@ import { default as useId } from './useId';
8
8
  import { default as useLocale } from './useLocale';
9
9
  import { default as useOffset } from './useOffset';
10
10
  import { default as useZIndex } from './useZIndex';
11
+ export type { UseDraggableOptions } from './useDraggable';
12
+ export type { UseFocusControllerOptions } from './useFocusController';
11
13
  export { useSystemTheme } from './useSystemTheme';
12
14
  export { type Theme, useTheme } from './useTheme';
15
+ export { I18N_INJECTION_KEY } from './useLocale';
13
16
  export { useClickOutside, useDraggable, useEventListener, useDisabledStyle, useFocusController, useFocusTrap, useLocale, useOffset, useZIndex, useId, };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- interface UseFocusControllerOptions {
2
+ export interface UseFocusControllerOptions {
3
3
  afterFocus?(): void;
4
4
  beforeBlur?(event: FocusEvent): boolean | undefined;
5
5
  afterBlur?(): void;
@@ -1,5 +1,13 @@
1
1
  import { Language } from '../locale';
2
- import { Ref } from 'vue';
2
+ import { InjectionKey, Ref } from 'vue';
3
3
  import { I18nInstance } from 'vue3-i18n';
4
+ /**
5
+ * Shared injection key for the i18n instance provided by ConfigProvider.
6
+ *
7
+ * Uses `Symbol.for()` instead of vue3-i18n's `i18nSymbol` (which uses `Symbol()`)
8
+ * to guarantee a single identity across all build chunks. Without this, Vite's
9
+ * manual chunking can duplicate the Symbol, breaking provide/inject across chunks.
10
+ */
11
+ export declare const I18N_INJECTION_KEY: InjectionKey<Ref<I18nInstance>>;
4
12
  export declare function useLocale(localeOverrides?: Ref<Language>): import('vue').ComputedRef<Pick<I18nInstance, "messages" | "t" | "setLocale" | "getLocale">>;
5
13
  export default useLocale;