@arclux/arc-ui-vue 1.3.0 → 1.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arclux/arc-ui-vue",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "description": "Vue 3 wrappers for ARC UI Web Components.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -44,7 +44,7 @@
44
44
  "vue": ">=3.3.0"
45
45
  },
46
46
  "dependencies": {
47
- "@arclux/arc-ui": "1.3.0"
47
+ "@arclux/arc-ui": "1.5.0"
48
48
  },
49
49
  "license": "MIT",
50
50
  "keywords": [
@@ -5,9 +5,11 @@ import '@arclux/arc-ui';
5
5
  defineOptions({ name: 'Accordion' });
6
6
 
7
7
  withDefaults(defineProps<{
8
+ multiple?: boolean;
8
9
  _items?: string;
9
10
  _openItems?: string;
10
11
  }>(), {
12
+ multiple: false,
11
13
  _items: () => ([]),
12
14
  _openItems: 'new Set()',
13
15
  });
@@ -15,6 +17,7 @@ withDefaults(defineProps<{
15
17
 
16
18
  <template>
17
19
  <arc-accordion
20
+ :multiple="multiple"
18
21
  :_items="_items"
19
22
  :_openItems="_openItems"
20
23
  >
@@ -8,10 +8,14 @@ withDefaults(defineProps<{
8
8
  src?: string;
9
9
  name?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
+ shape?: 'square' | 'rounded';
12
+ status?: 'online' | 'offline' | 'busy' | 'away';
11
13
  }>(), {
12
14
  src: '',
13
15
  name: '',
14
16
  size: 'md',
17
+ shape: 'circle',
18
+ status: '',
15
19
  });
16
20
  </script>
17
21
 
@@ -20,6 +24,8 @@ withDefaults(defineProps<{
20
24
  :src="src"
21
25
  :name="name"
22
26
  :size="size"
27
+ :shape="shape"
28
+ :status="status"
23
29
  >
24
30
  <slot />
25
31
  </arc-avatar>
@@ -6,9 +6,11 @@ defineOptions({ name: 'Badge' });
6
6
 
7
7
  withDefaults(defineProps<{
8
8
  variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
9
+ size?: 'sm' | 'lg';
9
10
  color?: string;
10
11
  }>(), {
11
12
  variant: 'default',
13
+ size: 'md',
12
14
  color: '',
13
15
  });
14
16
  </script>
@@ -16,6 +18,7 @@ withDefaults(defineProps<{
16
18
  <template>
17
19
  <arc-badge
18
20
  :variant="variant"
21
+ :size="size"
19
22
  :color="color"
20
23
  >
21
24
  <slot />
@@ -5,15 +5,25 @@ import '@arclux/arc-ui';
5
5
  defineOptions({ name: 'Callout' });
6
6
 
7
7
  withDefaults(defineProps<{
8
- variant?: 'info' | 'warning' | 'tip' | 'danger';
8
+ variant?: string;
9
+ dismissible?: boolean;
10
+ _dismissed?: string;
9
11
  }>(), {
10
12
  variant: 'info',
13
+ dismissible: false,
14
+ _dismissed: false,
11
15
  });
16
+
17
+ defineEmits<{
18
+ 'arc-dismiss': [event: CustomEvent];
19
+ }>();
12
20
  </script>
13
21
 
14
22
  <template>
15
23
  <arc-callout
16
24
  :variant="variant"
25
+ :dismissible="dismissible"
26
+ :_dismissed="_dismissed"
17
27
  >
18
28
  <slot />
19
29
  </arc-callout>
@@ -6,9 +6,13 @@ defineOptions({ name: 'Card' });
6
6
 
7
7
  withDefaults(defineProps<{
8
8
  href?: string;
9
+ padding?: 'none' | 'sm' | 'lg';
10
+ interactive?: boolean;
9
11
  _hasFooter?: string;
10
12
  }>(), {
11
13
  href: '',
14
+ padding: 'md',
15
+ interactive: false,
12
16
  _hasFooter: false,
13
17
  });
14
18
  </script>
@@ -16,6 +20,8 @@ withDefaults(defineProps<{
16
20
  <template>
17
21
  <arc-card
18
22
  :href="href"
23
+ :padding="padding"
24
+ :interactive="interactive"
19
25
  :_hasFooter="_hasFooter"
20
26
  >
21
27
  <slot />
@@ -8,9 +8,11 @@ withDefaults(defineProps<{
8
8
  variant?: 'subtle' | 'glow' | 'line-white' | 'line-primary' | 'line-gradient';
9
9
  align?: 'left' | 'right';
10
10
  vertical?: boolean;
11
+ label?: string;
11
12
  }>(), {
12
13
  variant: 'subtle',
13
14
  vertical: false,
15
+ label: '',
14
16
  });
15
17
  </script>
16
18
 
@@ -19,6 +21,7 @@ withDefaults(defineProps<{
19
21
  :variant="variant"
20
22
  :align="align"
21
23
  :vertical="vertical"
24
+ :label="label"
22
25
  >
23
26
  <slot />
24
27
  </arc-divider>
@@ -8,10 +8,12 @@ withDefaults(defineProps<{
8
8
  variant?: 'text' | 'circle' | 'rect';
9
9
  width?: string;
10
10
  height?: string;
11
+ count?: number;
11
12
  }>(), {
12
13
  variant: 'text',
13
14
  width: '',
14
15
  height: '',
16
+ count: 1,
15
17
  });
16
18
  </script>
17
19
 
@@ -20,6 +22,7 @@ withDefaults(defineProps<{
20
22
  :variant="variant"
21
23
  :width="width"
22
24
  :height="height"
25
+ :count="count"
23
26
  >
24
27
  <slot />
25
28
  </arc-skeleton>
@@ -7,9 +7,13 @@ defineOptions({ name: 'Stat' });
7
7
  withDefaults(defineProps<{
8
8
  value?: string;
9
9
  label?: string;
10
+ trend?: 'up' | 'down' | 'neutral';
11
+ change?: string;
10
12
  }>(), {
11
13
  value: '',
12
14
  label: '',
15
+ trend: '',
16
+ change: '',
13
17
  });
14
18
  </script>
15
19
 
@@ -17,6 +21,8 @@ withDefaults(defineProps<{
17
21
  <arc-stat
18
22
  :value="value"
19
23
  :label="label"
24
+ :trend="trend"
25
+ :change="change"
20
26
  >
21
27
  <slot />
22
28
  </arc-stat>
@@ -6,11 +6,13 @@ defineOptions({ name: 'Tag' });
6
6
 
7
7
  withDefaults(defineProps<{
8
8
  variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger';
9
+ size?: 'sm' | 'lg';
9
10
  removable?: boolean;
10
11
  disabled?: boolean;
11
12
  color?: string;
12
13
  }>(), {
13
14
  variant: 'default',
15
+ size: 'md',
14
16
  removable: false,
15
17
  disabled: false,
16
18
  color: '',
@@ -24,6 +26,7 @@ defineEmits<{
24
26
  <template>
25
27
  <arc-tag
26
28
  :variant="variant"
29
+ :size="size"
27
30
  :removable="removable"
28
31
  :disabled="disabled"
29
32
  :color="color"
@@ -5,11 +5,13 @@ import '@arclux/arc-ui';
5
5
  defineOptions({ name: 'Alert' });
6
6
 
7
7
  withDefaults(defineProps<{
8
- variant?: 'info' | 'success' | 'warning' | 'error';
8
+ variant?: string;
9
+ compact?: boolean;
9
10
  dismissible?: boolean;
10
11
  heading?: string;
11
12
  }>(), {
12
13
  variant: 'info',
14
+ compact: false,
13
15
  dismissible: false,
14
16
  heading: '',
15
17
  });
@@ -22,6 +24,7 @@ defineEmits<{
22
24
  <template>
23
25
  <arc-alert
24
26
  :variant="variant"
27
+ :compact="compact"
25
28
  :dismissible="dismissible"
26
29
  :heading="heading"
27
30
  >
@@ -8,11 +8,13 @@ withDefaults(defineProps<{
8
8
  open?: boolean;
9
9
  heading?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
+ fullscreen?: boolean;
11
12
  closable?: boolean;
12
13
  }>(), {
13
14
  open: false,
14
15
  heading: '',
15
16
  size: 'md',
17
+ fullscreen: false,
16
18
  closable: true,
17
19
  });
18
20
 
@@ -27,6 +29,7 @@ defineEmits<{
27
29
  :open="open"
28
30
  :heading="heading"
29
31
  :size="size"
32
+ :fullscreen="fullscreen"
30
33
  :closable="closable"
31
34
  >
32
35
  <slot />
@@ -9,12 +9,14 @@ withDefaults(defineProps<{
9
9
  variant?: string;
10
10
  size?: 'sm' | 'md' | 'lg';
11
11
  indeterminate?: boolean;
12
+ showValue?: boolean;
12
13
  label?: string;
13
14
  }>(), {
14
15
  value: 0,
15
16
  variant: 'bar',
16
17
  size: 'md',
17
18
  indeterminate: false,
19
+ showValue: false,
18
20
  label: '',
19
21
  });
20
22
  </script>
@@ -25,6 +27,7 @@ withDefaults(defineProps<{
25
27
  :variant="variant"
26
28
  :size="size"
27
29
  :indeterminate="indeterminate"
30
+ :showValue="showValue"
28
31
  :label="label"
29
32
  >
30
33
  <slot />
@@ -9,6 +9,7 @@ withDefaults(defineProps<{
9
9
  size?: 'sm' | 'md' | 'lg';
10
10
  href?: string;
11
11
  disabled?: boolean;
12
+ loading?: boolean;
12
13
  type?: string;
13
14
  _hasPrefix?: string;
14
15
  _hasSuffix?: string;
@@ -17,6 +18,7 @@ withDefaults(defineProps<{
17
18
  size: 'md',
18
19
  href: '',
19
20
  disabled: false,
21
+ loading: false,
20
22
  type: 'button',
21
23
  _hasPrefix: false,
22
24
  _hasSuffix: false,
@@ -29,6 +31,7 @@ withDefaults(defineProps<{
29
31
  :size="size"
30
32
  :href="href"
31
33
  :disabled="disabled"
34
+ :loading="loading"
32
35
  :type="type"
33
36
  :_hasPrefix="_hasPrefix"
34
37
  :_hasSuffix="_hasSuffix"
@@ -8,6 +8,7 @@ withDefaults(defineProps<{
8
8
  checked?: boolean;
9
9
  indeterminate?: boolean;
10
10
  disabled?: boolean;
11
+ size?: 'sm' | 'lg';
11
12
  label?: string;
12
13
  name?: string;
13
14
  value?: string;
@@ -15,6 +16,7 @@ withDefaults(defineProps<{
15
16
  checked: false,
16
17
  indeterminate: false,
17
18
  disabled: false,
19
+ size: 'md',
18
20
  label: '',
19
21
  name: '',
20
22
  value: '',
@@ -30,6 +32,7 @@ defineEmits<{
30
32
  :checked="checked"
31
33
  :indeterminate="indeterminate"
32
34
  :disabled="disabled"
35
+ :size="size"
33
36
  :label="label"
34
37
  :name="name"
35
38
  :value="value"
@@ -12,6 +12,8 @@ withDefaults(defineProps<{
12
12
  value?: string;
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
+ error?: string;
16
+ size?: 'sm' | 'lg';
15
17
  multiline?: boolean;
16
18
  rows?: number;
17
19
  _hasPrefix?: string;
@@ -24,6 +26,8 @@ withDefaults(defineProps<{
24
26
  value: '',
25
27
  disabled: false,
26
28
  required: false,
29
+ error: '',
30
+ size: 'md',
27
31
  multiline: false,
28
32
  rows: 5,
29
33
  _hasPrefix: false,
@@ -45,6 +49,8 @@ defineEmits<{
45
49
  :value="value"
46
50
  :disabled="disabled"
47
51
  :required="required"
52
+ :error="error"
53
+ :size="size"
48
54
  :multiline="multiline"
49
55
  :rows="rows"
50
56
  :_hasPrefix="_hasPrefix"
@@ -8,12 +8,14 @@ withDefaults(defineProps<{
8
8
  value?: string;
9
9
  name?: string;
10
10
  disabled?: boolean;
11
+ size?: 'sm' | 'lg';
11
12
  orientation?: 'horizontal';
12
13
  _radios?: string;
13
14
  }>(), {
14
15
  value: '',
15
16
  name: '',
16
17
  disabled: false,
18
+ size: 'md',
17
19
  orientation: 'vertical',
18
20
  _radios: () => ([]),
19
21
  });
@@ -28,6 +30,7 @@ defineEmits<{
28
30
  :value="value"
29
31
  :name="name"
30
32
  :disabled="disabled"
33
+ :size="size"
31
34
  :orientation="orientation"
32
35
  :_radios="_radios"
33
36
  >
@@ -10,6 +10,8 @@ withDefaults(defineProps<{
10
10
  label?: string;
11
11
  name?: string;
12
12
  disabled?: boolean;
13
+ size?: 'sm' | 'lg';
14
+ error?: string;
13
15
  open?: boolean;
14
16
  _options?: string;
15
17
  }>(), {
@@ -18,6 +20,8 @@ withDefaults(defineProps<{
18
20
  label: '',
19
21
  name: '',
20
22
  disabled: false,
23
+ size: 'md',
24
+ error: '',
21
25
  open: false,
22
26
  _options: () => ([]),
23
27
  });
@@ -34,6 +38,8 @@ defineEmits<{
34
38
  :label="label"
35
39
  :name="name"
36
40
  :disabled="disabled"
41
+ :size="size"
42
+ :error="error"
37
43
  :open="open"
38
44
  :_options="_options"
39
45
  >
@@ -13,6 +13,8 @@ withDefaults(defineProps<{
13
13
  disabled?: boolean;
14
14
  readonly?: boolean;
15
15
  resize?: 'none' | 'vertical' | 'horizontal' | 'both';
16
+ size?: 'sm' | 'lg';
17
+ autoResize?: boolean;
16
18
  error?: string;
17
19
  }>(), {
18
20
  value: '',
@@ -23,6 +25,8 @@ withDefaults(defineProps<{
23
25
  disabled: false,
24
26
  readonly: false,
25
27
  resize: 'vertical',
28
+ size: 'md',
29
+ autoResize: false,
26
30
  error: '',
27
31
  });
28
32
 
@@ -42,6 +46,8 @@ defineEmits<{
42
46
  :disabled="disabled"
43
47
  :readonly="readonly"
44
48
  :resize="resize"
49
+ :size="size"
50
+ :autoResize="autoResize"
45
51
  :error="error"
46
52
  >
47
53
  <slot />
@@ -7,11 +7,13 @@ defineOptions({ name: 'Toggle' });
7
7
  withDefaults(defineProps<{
8
8
  checked?: boolean;
9
9
  disabled?: boolean;
10
+ size?: 'sm' | 'lg';
10
11
  label?: string;
11
12
  name?: string;
12
13
  }>(), {
13
14
  checked: false,
14
15
  disabled: false,
16
+ size: 'md',
15
17
  label: '',
16
18
  name: '',
17
19
  });
@@ -25,6 +27,7 @@ defineEmits<{
25
27
  <arc-toggle
26
28
  :checked="checked"
27
29
  :disabled="disabled"
30
+ :size="size"
28
31
  :label="label"
29
32
  :name="name"
30
33
  >
@@ -6,14 +6,20 @@ defineOptions({ name: 'Container' });
6
6
 
7
7
  withDefaults(defineProps<{
8
8
  narrow?: boolean;
9
+ size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
10
+ padding?: 'none' | 'sm' | 'lg';
9
11
  }>(), {
10
12
  narrow: false,
13
+ size: 'md',
14
+ padding: 'md',
11
15
  });
12
16
  </script>
13
17
 
14
18
  <template>
15
19
  <arc-container
16
20
  :narrow="narrow"
21
+ :size="size"
22
+ :padding="padding"
17
23
  >
18
24
  <slot />
19
25
  </arc-container>
@@ -5,8 +5,10 @@ import '@arclux/arc-ui';
5
5
  defineOptions({ name: 'Breadcrumb' });
6
6
 
7
7
  withDefaults(defineProps<{
8
+ separator?: string;
8
9
  _items?: string;
9
10
  }>(), {
11
+ separator: '/',
10
12
  _items: () => ([]),
11
13
  });
12
14
 
@@ -17,6 +19,7 @@ defineEmits<{
17
19
 
18
20
  <template>
19
21
  <arc-breadcrumb
22
+ :separator="separator"
20
23
  :_items="_items"
21
24
  >
22
25
  <slot />
@@ -7,9 +7,11 @@ defineOptions({ name: 'Footer' });
7
7
  withDefaults(defineProps<{
8
8
  compact?: boolean;
9
9
  border?: boolean;
10
+ align?: 'center';
10
11
  }>(), {
11
12
  compact: false,
12
13
  border: true,
14
+ align: 'left',
13
15
  });
14
16
  </script>
15
17
 
@@ -17,6 +19,7 @@ withDefaults(defineProps<{
17
19
  <arc-footer
18
20
  :compact="compact"
19
21
  :border="border"
22
+ :align="align"
20
23
  >
21
24
  <slot />
22
25
  </arc-footer>
@@ -7,11 +7,13 @@ defineOptions({ name: 'Link' });
7
7
  withDefaults(defineProps<{
8
8
  href?: string;
9
9
  variant?: 'muted' | 'nav';
10
+ underline?: 'always' | 'never';
10
11
  active?: boolean;
11
12
  external?: boolean;
12
13
  }>(), {
13
14
  href: '',
14
15
  variant: 'default',
16
+ underline: 'hover',
15
17
  active: false,
16
18
  external: false,
17
19
  });
@@ -21,6 +23,7 @@ withDefaults(defineProps<{
21
23
  <arc-link
22
24
  :href="href"
23
25
  :variant="variant"
26
+ :underline="underline"
24
27
  :active="active"
25
28
  :external="external"
26
29
  >
@@ -8,10 +8,12 @@ withDefaults(defineProps<{
8
8
  total?: number;
9
9
  current?: number;
10
10
  siblings?: number;
11
+ compact?: boolean;
11
12
  }>(), {
12
13
  total: 1,
13
14
  current: 1,
14
15
  siblings: 1,
16
+ compact: false,
15
17
  });
16
18
 
17
19
  defineEmits<{
@@ -24,6 +26,7 @@ defineEmits<{
24
26
  :total="total"
25
27
  :current="current"
26
28
  :siblings="siblings"
29
+ :compact="compact"
27
30
  >
28
31
  <slot />
29
32
  </arc-pagination>
@@ -7,12 +7,14 @@ defineOptions({ name: 'Sidebar' });
7
7
  withDefaults(defineProps<{
8
8
  active?: string;
9
9
  collapsed?: boolean;
10
+ position?: 'right';
10
11
  width?: string;
11
12
  glow?: boolean;
12
13
  _sections?: string;
13
14
  }>(), {
14
15
  active: '',
15
16
  collapsed: false,
17
+ position: 'left',
16
18
  width: '260px',
17
19
  glow: false,
18
20
  _sections: () => ([]),
@@ -23,6 +25,7 @@ withDefaults(defineProps<{
23
25
  <arc-sidebar
24
26
  :active="active"
25
27
  :collapsed="collapsed"
28
+ :position="position"
26
29
  :width="width"
27
30
  :glow="glow"
28
31
  :_sections="_sections"
@@ -7,10 +7,14 @@ defineOptions({ name: 'Tabs' });
7
7
  withDefaults(defineProps<{
8
8
  items?: unknown[];
9
9
  selected?: number;
10
+ align?: 'center' | 'end';
11
+ variant?: 'pills';
10
12
  _tabs?: string;
11
13
  }>(), {
12
14
  items: () => ([]),
13
15
  selected: 0,
16
+ align: 'start',
17
+ variant: 'underline',
14
18
  _tabs: () => ([]),
15
19
  });
16
20
 
@@ -23,6 +27,8 @@ defineEmits<{
23
27
  <arc-tabs
24
28
  :items="items"
25
29
  :selected="selected"
30
+ :align="align"
31
+ :variant="variant"
26
32
  :_tabs="_tabs"
27
33
  >
28
34
  <slot />
@@ -10,12 +10,14 @@ withDefaults(defineProps<{
10
10
  menuOpen?: boolean;
11
11
  mobileMenu?: string;
12
12
  menuPosition?: string;
13
+ navAlign?: string;
13
14
  }>(), {
14
15
  heading: '',
15
16
  fixed: false,
16
17
  menuOpen: false,
17
18
  mobileMenu: 'sidebar',
18
19
  menuPosition: 'left',
20
+ navAlign: 'center',
19
21
  });
20
22
  </script>
21
23
 
@@ -26,6 +28,7 @@ withDefaults(defineProps<{
26
28
  :menuOpen="menuOpen"
27
29
  :mobileMenu="mobileMenu"
28
30
  :menuPosition="menuPosition"
31
+ :navAlign="navAlign"
29
32
  >
30
33
  <slot />
31
34
  </arc-top-bar>