@sixbell-telco/sdk 0.17.0 → 0.18.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/CHANGELOG.md CHANGED
@@ -162,6 +162,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
162
162
  - **Table Component**: Add height variant handling and overflow styles (`813223d`)
163
163
  - **Table Features:**
164
164
  - Added `showFooter` prop to control table footer visibility (`e76555b`)
165
+ - **Icon Component:**
166
+ - Added additional color and size options for increased customization (`f4864a7`)
165
167
 
166
168
  ### Fixed
167
169
 
@@ -1,10 +1,10 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare const iconComponent: (props?: ({
3
- color?: "white" | "black" | "primary" | "base" | "inherit" | null | undefined;
4
- size?: "auto" | "sm" | "md" | "lg" | "xl" | null | undefined;
3
+ color?: "white" | "black" | "primary" | "secondary" | "tertiary" | "neutral" | "success" | "info" | "warning" | "error" | "base-content" | "base" | "inherit" | null | undefined;
4
+ size?: "auto" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export type IconColorProps = 'white' | 'black' | 'primary' | 'base' | 'inherit' | null | undefined;
7
- export type IconSizeProps = 'auto' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
6
+ export type IconColorProps = 'white' | 'black' | 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'success' | 'info' | 'warning' | 'error' | 'base-content' | 'base' | 'inherit' | null | undefined;
7
+ export type IconSizeProps = 'auto' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
8
8
  export type IconProps = {
9
9
  color?: IconColorProps;
10
10
  size?: IconSizeProps;
@@ -10,11 +10,20 @@ const iconComponent = cva(['leading-tight', 'inline-flex!', 'items-center!', 'ju
10
10
  white: 'text-white!',
11
11
  black: 'text-black!',
12
12
  primary: 'text-primary!',
13
+ secondary: 'text-secondary!',
14
+ tertiary: 'text-tertiary!',
15
+ neutral: 'text-neutral!',
16
+ success: 'text-success!',
17
+ info: 'text-info!',
18
+ warning: 'text-warning!',
19
+ error: 'text-error!',
20
+ 'base-content': 'text-base-content!',
13
21
  base: 'text-base-content!',
14
22
  inherit: 'text-inherit!',
15
23
  },
16
24
  size: {
17
25
  auto: ['[--ng-icon__size:_1.2em]'],
26
+ xs: ['text-lg'],
18
27
  sm: ['text-xl'],
19
28
  md: ['text-2xl'],
20
29
  lg: ['text-4xl'],
@@ -1 +1 @@
1
- {"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { NgIconComponent } from '@ng-icons/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const iconComponent = cva(['leading-tight', 'inline-flex!', 'items-center!', 'justify-center!'], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-white!',\n\t\t\tblack: 'text-black!',\n\t\t\tprimary: 'text-primary!',\n\t\t\tbase: 'text-base-content!',\n\t\t\tinherit: 'text-inherit!',\n\t\t},\n\t\tsize: {\n\t\t\tauto: ['[--ng-icon__size:_1.2em]'],\n\t\t\tsm: ['text-xl'],\n\t\t\tmd: ['text-2xl'],\n\t\t\tlg: ['text-4xl'],\n\t\t\txl: ['text-6xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type IconColorProps = 'white' | 'black' | 'primary' | 'base' | 'inherit' | null | undefined;\nexport type IconSizeProps = 'auto' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: 'st-icon',\n\timports: [NgIconComponent],\n\ttemplateUrl: './icon.component.html',\n\tstyles: '',\n})\nexport class IconComponent {\n\tcolor = input<IconColorProps>();\n\tsize = input<IconSizeProps>();\n\ticon = input.required<string>();\n\n\tcomponentClass = computed(() => cn(iconComponent({ color: this.color(), size: this.size() })));\n}\n","<ng-icon [svg]=\"icon()\" [class]=\"componentClass()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKO,MAAM,aAAa,GAAG,GAAG,CAAC,CAAC,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,CAAC,EAAE;AACvG,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,OAAO,EAAE,eAAe;AACxB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,IAAI,EAAE,CAAC,0BAA0B,CAAC;YAClC,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,EAAE,EAAE,CAAC,UAAU,CAAC;AAChB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,CAAA;MAgBY,aAAa,CAAA;IACzB,KAAK,GAAG,KAAK,EAAkB;IAC/B,IAAI,GAAG,KAAK,EAAiB;AAC7B,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,EAAU;AAE/B,IAAA,cAAc,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;uGALlF,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,IAAA,EAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC3C1B,6DACA,EAAA,MAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDsCW,eAAe,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;2FAIb,aAAa,EAAA,UAAA,EAAA,CAAA;kBANzB,SAAS;+BACC,SAAS,EAAA,OAAA,EACV,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,6DAAA,EAAA;;;AEvC3B;;AAEG;;;;"}
1
+ {"version":3,"file":"sixbell-telco-sdk-components-icon.mjs","sources":["../../../projects/sdk/components/icon/src/icon.component.ts","../../../projects/sdk/components/icon/src/icon.component.html","../../../projects/sdk/components/icon/sixbell-telco-sdk-components-icon.ts"],"sourcesContent":["import { Component, computed, input } from '@angular/core';\nimport { NgIconComponent } from '@ng-icons/core';\nimport { cn } from '@sixbell-telco/sdk/utils/cn';\nimport { cva } from 'class-variance-authority';\n\nexport const iconComponent = cva(['leading-tight', 'inline-flex!', 'items-center!', 'justify-center!'], {\n\tvariants: {\n\t\tcolor: {\n\t\t\twhite: 'text-white!',\n\t\t\tblack: 'text-black!',\n\t\t\tprimary: 'text-primary!',\n\t\t\tsecondary: 'text-secondary!',\n\t\t\ttertiary: 'text-tertiary!',\n\t\t\tneutral: 'text-neutral!',\n\t\t\tsuccess: 'text-success!',\n\t\t\tinfo: 'text-info!',\n\t\t\twarning: 'text-warning!',\n\t\t\terror: 'text-error!',\n\t\t\t'base-content': 'text-base-content!',\n\t\t\tbase: 'text-base-content!',\n\t\t\tinherit: 'text-inherit!',\n\t\t},\n\t\tsize: {\n\t\t\tauto: ['[--ng-icon__size:_1.2em]'],\n\t\t\txs: ['text-lg'],\n\t\t\tsm: ['text-xl'],\n\t\t\tmd: ['text-2xl'],\n\t\t\tlg: ['text-4xl'],\n\t\t\txl: ['text-6xl'],\n\t\t},\n\t},\n\tcompoundVariants: [],\n\tdefaultVariants: {\n\t\tcolor: 'inherit',\n\t\tsize: 'auto',\n\t},\n});\n\nexport type IconColorProps =\n\t| 'white'\n\t| 'black'\n\t| 'primary'\n\t| 'secondary'\n\t| 'tertiary'\n\t| 'neutral'\n\t| 'success'\n\t| 'info'\n\t| 'warning'\n\t| 'error'\n\t| 'base-content'\n\t| 'base'\n\t| 'inherit'\n\t| null\n\t| undefined;\nexport type IconSizeProps = 'auto' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;\n\nexport type IconProps = {\n\tcolor?: IconColorProps;\n\tsize?: IconSizeProps;\n};\n\n@Component({\n\tselector: 'st-icon',\n\timports: [NgIconComponent],\n\ttemplateUrl: './icon.component.html',\n\tstyles: '',\n})\nexport class IconComponent {\n\tcolor = input<IconColorProps>();\n\tsize = input<IconSizeProps>();\n\ticon = input.required<string>();\n\n\tcomponentClass = computed(() => cn(iconComponent({ color: this.color(), size: this.size() })));\n}\n","<ng-icon [svg]=\"icon()\" [class]=\"componentClass()\" />\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKO,MAAM,aAAa,GAAG,GAAG,CAAC,CAAC,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,iBAAiB,CAAC,EAAE;AACvG,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,SAAS,EAAE,iBAAiB;AAC5B,YAAA,QAAQ,EAAE,gBAAgB;AAC1B,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,IAAI,EAAE,YAAY;AAClB,YAAA,OAAO,EAAE,eAAe;AACxB,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,cAAc,EAAE,oBAAoB;AACpC,YAAA,IAAI,EAAE,oBAAoB;AAC1B,YAAA,OAAO,EAAE,eAAe;AACxB,SAAA;AACD,QAAA,IAAI,EAAE;YACL,IAAI,EAAE,CAAC,0BAA0B,CAAC;YAClC,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,SAAS,CAAC;YACf,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,EAAE,EAAE,CAAC,UAAU,CAAC;YAChB,EAAE,EAAE,CAAC,UAAU,CAAC;AAChB,SAAA;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,EAAE;AACpB,IAAA,eAAe,EAAE;AAChB,QAAA,KAAK,EAAE,SAAS;AAChB,QAAA,IAAI,EAAE,MAAM;AACZ,KAAA;AACD,CAAA;MA+BY,aAAa,CAAA;IACzB,KAAK,GAAG,KAAK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AS;+BACC,SAAS,EAAA,OAAA,EACV,CAAC,eAAe,CAAC,EAAA,QAAA,EAAA,6DAAA,EAAA;;;AE/D3B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sixbell-telco/sdk",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "A collection of reusable components designed for use in Sixbell Telco Angular projects",
5
5
  "keywords": [
6
6
  "sixbell",
@@ -31,6 +31,10 @@
31
31
  "types": "./components/accordion/index.d.ts",
32
32
  "default": "./fesm2022/sixbell-telco-sdk-components-accordion.mjs"
33
33
  },
34
+ "./components/avatar": {
35
+ "types": "./components/avatar/index.d.ts",
36
+ "default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
37
+ },
34
38
  "./components/audio-player": {
35
39
  "types": "./components/audio-player/index.d.ts",
36
40
  "default": "./fesm2022/sixbell-telco-sdk-components-audio-player.mjs"
@@ -43,10 +47,6 @@
43
47
  "types": "./components/button/index.d.ts",
44
48
  "default": "./fesm2022/sixbell-telco-sdk-components-button.mjs"
45
49
  },
46
- "./components/avatar": {
47
- "types": "./components/avatar/index.d.ts",
48
- "default": "./fesm2022/sixbell-telco-sdk-components-avatar.mjs"
49
- },
50
50
  "./components/card": {
51
51
  "types": "./components/card/index.d.ts",
52
52
  "default": "./fesm2022/sixbell-telco-sdk-components-card.mjs"
@@ -167,14 +167,14 @@
167
167
  "types": "./components/forms/select/index.d.ts",
168
168
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-select.mjs"
169
169
  },
170
- "./components/forms/textarea": {
171
- "types": "./components/forms/textarea/index.d.ts",
172
- "default": "./fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs"
173
- },
174
170
  "./components/forms/switch": {
175
171
  "types": "./components/forms/switch/index.d.ts",
176
172
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-switch.mjs"
177
173
  },
174
+ "./components/forms/textarea": {
175
+ "types": "./components/forms/textarea/index.d.ts",
176
+ "default": "./fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs"
177
+ },
178
178
  "./components/forms/toggle": {
179
179
  "types": "./components/forms/toggle/index.d.ts",
180
180
  "default": "./fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs"